[Glpi-dev] Patch for Reports Plugin to fix columns

2009-06-01 Thread Roque, Dan
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

Re: [Glpi-dev] Patch for Reports Plugin to fix columns

2009-06-01 Thread Roque, Dan
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'

Re: [Glpi-dev] Patch for Reports Plugin to fix columns

2009-06-01 Thread Roque, Dan
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&#x

[Glpi-dev] Reports Updated Patch

2009-06-02 Thread Roque, Dan
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).

[Glpi-dev] Report Patch Suggestion

2009-06-02 Thread Roque, Dan
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.

Re: [Glpi-dev] Report Patch Suggestion

2009-06-02 Thread Roque, Dan
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:

Re: [Glpi-dev] duplicate entries

2009-06-24 Thread Roque, Dan
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