Small patch in dropdown class due to migration to Toolbox :
Index: dropdown.class.php
===================================================================
--- dropdown.class.php (revision 15317)
+++ dropdown.class.php (working copy)
@@ -721,7 +721,7 @@
echo "<optgroup label=\"$label\">";
foreach ($dp as $key => $val) {
- $search = getItemTypeSearchURL($key);
+ $search = Toolbox::getItemTypeSearchURL($key);
if (basename($search) == basename($value)) {
$sel = 'selected';
@@ -768,7 +768,7 @@
echo "<tr><th>$label</th></tr>\n";
foreach ($dp as $key => $val) {
- echo "<tr class='tab_bg_1'><td><a
href='".getItemTypeSearchURL($key)."'>";
+ echo "<tr class='tab_bg_1'><td><a
href='".Toolbox::getItemTypeSearchURL($key)."'>";
echo "$val</a></td></tr>\n";
$i++;
}
--
--------------------------------------------------------------------
Damien TOURAINE - Ingénieur de Recherche CNRS, LIMSI-CNRS
Groupe de RV&A "VENISE", (http://www.limsi.fr/venise/)
Bat. 508, Universite Paris-Sud 91403 Orsay cedex - +33 1 69 85 81 64
--------------------------------------------------------------------
_______________________________________________
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev