-
Notifications
You must be signed in to change notification settings - Fork 157
Open
Labels
Description
OCS Inventory version
Version : 2.12.1
Describe the bug
Exporting a CSV from an All software filter with column Standardized version being empty on all records it is existent in the header of the generated csv file, but not the data of it effectively shifting the trailing columns to the left leaving nbre empty.
Publisher;name;Version;Standardized version;Category;nbre;
[...]
"Adobe";"Adobe Acrobat (64-bit)";"24.004.20220";"Microsoft OS ";"488";
"Adobe";"Adobe Acrobat (64-bit)";"24.004.20243";"Microsoft OS ";"2";
> dos2unix export.csv; column --table --separator ';' export.csv
Publisher name Version Standardized version Category nbre
[...]
"Adobe" "Adobe Acrobat (64-bit)" "24.004.20220" "Microsoft OS " "488"
"Adobe" "Adobe Acrobat (64-bit)" "24.004.20243" "Microsoft OS " "2"
To Reproduce
Steps to reproduce the behavior:
- Go to
All software/index.php?function=visu_all_soft - Click on
Filters - Configure filter as follows:
Software name: Adobe Acrobat (64-bit)
Operating system: Windows
Display count softwares: Yes
- Click on
Search - Click on
(Download)/index.php?function=export_csv&no_header=1&tablename=all_soft&nolimit=true - Examine the downloaded CSV file
Expected behavior
CSV column Standardized version should have "" in the CSV data records.