From: Michael Wood Date: Fri, 30 Jan 2015 18:18:44 +0000 (+0000) Subject: toaster: machines Fix undefined variables X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=388cfb26695ffd6ac0498e5de571cd4a5e083f8b;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toaster: machines Fix undefined variables pagesize and orderby were undefined causing an error to be thrown when browsing to the all machines page Signed-off-by: Michael Wood --- diff --git a/lib/toaster/toastergui/views.py b/lib/toaster/toastergui/views.py index 9567e626be7..73a5c7e99fa 100755 --- a/lib/toaster/toastergui/views.py +++ b/lib/toaster/toastergui/views.py @@ -2774,6 +2774,7 @@ if toastermain.settings.MANAGED: # define here what parameters the view needs in the GET portion in order to # 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:+' }; retval = _verify_parameters( request.GET, mandatory_parameters ) if retval: