]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: machines Make sure we don't overwrite the pagesize
authorMichael Wood <michael.g.wood@intel.com>
Mon, 2 Feb 2015 17:27:54 +0000 (17:27 +0000)
committerAlexandru DAMIAN <alexandru.damian@intel.com>
Mon, 9 Feb 2015 17:54:34 +0000 (17:54 +0000)
The pagesize was accidentally being over written and should be set to
the value returned from the cookie if there was one.

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
lib/toaster/toastergui/views.py

index 641170e639a0011992fd181677f1f9c11b465e85..9d85a93b7bd4da3e3d6a070bf910a81435b7e548 100755 (executable)
@@ -2778,7 +2778,7 @@ if toastermain.settings.MANAGED:
         # be able to display something.  'count' and 'page' are mandatory for all views
         # that use paginators.
         (pagesize, orderby) = _get_parameters_values(request, 10, 'updated:+')
-        mandatory_parameters = { 'count': 10,  'page' : 1, 'orderby' : 'name:+' };
+        mandatory_parameters = { 'count': pagesize,  'page' : 1, 'orderby' : orderby };
         retval = _verify_parameters( request.GET, mandatory_parameters )
         if retval:
             return _redirect_parameters( 'machines', request.GET, mandatory_parameters)