From e2a31b04f480338332b83c7cbdf778ee2c039aa3 Mon Sep 17 00:00:00 2001 From: Aysam Guerler Date: Fri, 7 Feb 2014 00:05:02 -0500 Subject: [PATCH] Grids: Convert ill defined conditions to boolean --- lib/galaxy/web/framework/helpers/grids.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/web/framework/helpers/grids.py b/lib/galaxy/web/framework/helpers/grids.py index 07dbaa79b4f..f5e14226b3b 100644 --- a/lib/galaxy/web/framework/helpers/grids.py +++ b/lib/galaxy/web/framework/helpers/grids.py @@ -768,7 +768,7 @@ class GridOperation( object ): return dict( operation=self.label, id=item.id ) def allowed( self, item ): if self.condition: - return self.condition( item ) + return bool(self.condition( item )) else: return True