File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,10 @@ public function displayField($canEdit = true) {
9595 'enable_fileupload ' => false ,
9696 'uploads ' => $ this ->uploads
9797 ]);
98+ if (PLUGIN_FORMCREATOR_TEXTAREA_FIX && version_compare (GLPI_VERSION , '9.5.0-dev ' ) < 0 ) {
99+ // for GLPI 9.4 without patch https://github.com/glpi-project/glpi/pull/6936
100+ echo '<div class="fileupload_info"></div> ' ;
101+ }
98102 echo Html::scriptBlock ("$(function() {
99103 pluginFormcreatorInitializeTextarea(' $ fieldName', ' $ rand');
100104 }); " );
Original file line number Diff line number Diff line change 4242// Maximum GLPI version, exclusive
4343define ('PLUGIN_FORMCREATOR_GLPI_MAX_VERSION ' , '9.5 ' );
4444
45+ define ('PLUGIN_FORMCREATOR_TEXTAREA_FIX ' , true );
46+
4547define ('FORMCREATOR_ROOTDOC ' , $ CFG_GLPI ['root_doc ' ] . '/plugins/formcreator ' );
4648
4749/**
You can’t perform that action at this time.
0 commit comments