Skip to content

Commit

Permalink
fix(textareafield): remove workaround for textarea
Browse files Browse the repository at this point in the history
file drop zone removed, making the workaround useless

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Apr 2, 2020
1 parent 9e6ae32 commit f79ed36
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions inc/fields/textareafield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,8 @@ public function getRenderedHtml($canEdit = true) {
'rows' => 5,
'display' => false,
'enable_richtext' => true,
'enable_fileupload' => true,
'enable_fileupload' => false,
]);
if (version_compare(GLPI_VERSION, '9.4.6') < 0) {
$html .= '</div>';
}
$html .= Html::scriptBlock("$(function() {
pluginFormcreatorInitializeTextarea('$fieldName', '$rand');
});");
Expand Down

0 comments on commit f79ed36

Please sign in to comment.