diff --git a/inc/fields/textareafield.class.php b/inc/fields/textareafield.class.php index 2acdd74cf..e9977039d 100644 --- a/inc/fields/textareafield.class.php +++ b/inc/fields/textareafield.class.php @@ -85,11 +85,12 @@ public function displayField($canEdit = true) { 'rows' => 5, 'display' => false, 'enable_richtext' => $useRichText, - 'enable_fileupload' => true, + 'enable_fileupload' => false, ]); - if (version_compare(GLPI_VERSION, '9.4.6') < 0) { - echo ''; - } + // This area is filled by glpi : @see js/fileupload.js + // it contains _filename[] hidden inputs required to properly handle + // images pasted in the textarea + echo '
'; echo Html::scriptBlock("$(function() { pluginFormcreatorInitializeTextarea('$fieldName', '$rand'); });");