Hi GLPI developpers,

When used in a plugin, the calendar icon used in
Html::showDateTimeField() doesn't load sinc it uses a relative path
instead of an absolute path constructed with CFG_GLPI['root_doc'].

The following small patch fix this issue.

Best regards,
--
Kevin Roy
Index: inc/html.class.php
===================================================================
--- inc/html.class.php	(revision 22791)
+++ inc/html.class.php	(working copy)
@@ -3064,7 +3064,7 @@
                   showOn: 'button',
                   showWeek: true,
                   controlType: 'select',
-                  buttonImage: '../pics/calendar.png',
+                  buttonImage: '".$CFG_GLPI['root_doc']."/pics/calendar.png',
                   buttonImageOnly: true";
       if (!$p['canedit']) {
          $js .= ",disabled: true";
_______________________________________________
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev

Reply via email to