Merge lp:~simonsp/ocsinventory-ocsreports/fix-sort-tag-page into lp:ocsinventory-ocsreports/stable-1.3
Status: | Needs review |
---|---|
Proposed branch: | lp:~simonsp/ocsinventory-ocsreports/fix-sort-tag-page |
Merge into: | lp:ocsinventory-ocsreports/stable-1.3 |
Diff against target: |
35 lines (+12/-13) 1 file modified
preferences.php (+12/-13) |
To merge this branch: | bzr merge lp:~simonsp/ocsinventory-ocsreports/fix-sort-tag-page |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OCS Inventory Dev Team | Pending | ||
Review via email: mp+21291@code.launchpad.net |
Description of the change
This fixes an issue where the tag would silently not sort as can be seen in ver 1.02, and fixes the issue where sorting on Computer count causes an SQL error which can be seen after revision 6 in ocsreports-stable.
The security fix in revision number 6 escaped the quotes in $_POST and $_GET. This caused the sql to break when trying to sort on the tag page by Computer count.
Code was put in place to handle sorting of Computer count differently. This patch removes that code so that sorting on Computer count doesn't send the language file entry as the contents to be sorted, eg. "Computer count" (with the quotes), and instead treats it the way all other sorts are treated.
I checked the trunk branch, and this bug does not exist there. The trunk properly sorts on the tag page.
Unmerged revisions
- 48. By Paul W. Simons
-
This fixes an issue where the tag would silently not sort as can be seen in ver 1.02, and fixes the issue where sorting on Computer count causes an SQL error which can be seen after revision 6 in ocsreports-stable.
The security fix in revision number 6 escaped the quotes in $_POST and $_GET. This caused the sql to break when trying to sort on the tag page by Computer count.
Code was put in place to handle sorting of Computer count differently. This patch removes that code so that sorting on Computer count doesn't send the language file entry as the contents to be sorted, eg. "Computer count" (with the quotes), and instead treats it the way all other sorts are treated.