~simonsp/ocsinventory-ocsreports/fix-sort-tag-page

Viewing all changes in revision 48.

  • Committer: Paul Simons
  • Date: 2010-03-12 20:55:30 UTC
  • Revision ID: simonsp@calumet.purdue.edu-20100312205530-ugdkuna8p29oowp5
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.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: