Patch for ../inc/plugin_reports.autoreport.class.php
Old code:
195 for ($i = 0; $i < $nbcols;
$i++) {
196 $colname =
$DB->field_name($res, $i);
197 $coltitle =
(isset ($this->columns[$colname]) ? $this->columns[$colname] :
$colname);
198 echo
displaySearchHeaderItem($output_type, $coltitle, $num);
199 $colsname[]
= $colname;
200 }
Patch:
195 for ($i = 0; $i < $nbcols;
$i++) {
196 $colname =
$DB->field_name($res, $i);
197 if (isset
($this->columns[$colname])) {
198
$coltitle = $this->columns[$colname];
199
echo displaySearchHeaderItem($output_type, $coltitle, $num);
200
$colsname[] = $colname;
201 }
202 else {
203
// do nothing
204 }
205 }
_______________________________________________
Glpi-dev mailing list
[email protected]
https://mail.gna.org/listinfo/glpi-dev