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
Remi Collet
Sent: Monday, June 01, 2009 1:37 PM
To: Liste de diffusion des developpeurs GLPI
Subject: Re: [Glpi-dev] Patch for Reports Plugin to fix columns
Le 01/06/2009 18:50, Roque, Dan a écrit :
> Patch for ../inc/plugin_reports.autoreport.class.php
Thank's for this.
In fact we'
ho
> displaySearchHeaderItem($output_type, $colname, $num);
> $colsname[] = $colname;
> }
> }
-Original Message-
From: Roque, Dan
Sent: Monday, June 01, 2009 4:00 PM
To: 'Liste de diffusion des developpeurs GLPI
Changes:
- Fixed "order" issue with $colnames. You can now specify
column titles in any order without data being in shown in wrong column.
- If setColumnsName called => display only named columns in
$columns.
Else display all columns with default name (from SQL query).
I added a patch to add 2 additional functionalities which I think will
allow for more customization in a user's report.
1. Ability to put columns in any order in $columns.
2. Show only what is specified in $columns else if not sett then
show default columns from select sql query.
Updated patch with remi's suggestion and added check for $columns to
make sure no invalid data is set. Attached is the patch formatted file.
Dan (blood)
From: glpi-dev-boun...@gna.org [mailto:glpi-dev-boun...@gna.org] On
Behalf Of Roque, Dan
Sent: Tuesday, June 02, 2009 12:45 PM
To:
You need to configure your AUTO_DUPLICATE_LVL in OCS properly to prevent
duplicates. We use Serial + Macaddress in our environment and seems to work
quite well.
Dan
From: glpi-dev-boun...@gna.org [mailto:glpi-dev-boun...@gna.org] On Behalf Of
Satyanarayan R
Sent: Tuesday, June 23, 2009 4