You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2018-03-15 16:54:47

ricardoariel
Member
Registered: 2018-03-15
Posts: 3

Erro GLPI 9.2.1 can not attach file in follow-up

Users can not attach file in follow-up (rich text)

In Debug mod show me

PHP Notice: Undefined index: dropZone in /var/www/html/glpi/inc/html.class.php at line 4749
PHP Notice: Undefined index: showfilesize in /var/www/html/glpi/inc/html.class.php at line 4754



Code:

//display file controls
     //$display .= __('Attach file by drag & drop or copy & paste in editor or ').
                  //"<p><a href='' id='upload_link$rand'>".__('selecting them')."</a>".
                  //"<input id='upload_rich_text$rand' class='upload_rich_text' type='file' />";

         $display .= "<div id='{$p['dropZone']}'>";
         $display .= "<span class='b'>".__('Drag and drop your file here, or').'</span><br>';
         $display .= "<input id='fileupload{$p['rand']}' type='file' name='".$p['name']."[]'
                         data-url='".$CFG_GLPI["root_doc"]."/ajax/fileupload.php'
                         data-form-data='{\"name\": \"".$p['name']."\",
                                          \"showfilesize\": \"".$p['showfilesize']."\"}'".($p['multiple']?" multiple='multiple'":"").">";
         $display .= "<div id='progress{$p['rand']}' style='display:none'>".
                 "<div class='uploadbar' style='width: 0%;'></div></div>";
         $display .= "</div>";

         $display .= "</div>"; //fim

Offline

#2 2018-03-21 13:49:20

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Erro GLPI 9.2.1 can not attach file in follow-up

PHP notice is not an error.
Thjis part of code change in 9.2.2. So update your version to correct your issue


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#3 2018-03-26 17:03:12

ricardoariel
Member
Registered: 2018-03-15
Posts: 3

Re: Erro GLPI 9.2.1 can not attach file in follow-up

Thanks! I will update!

Offline

Board footer

Powered by FluxBB