Fix bug when viewing batch with no execution options

This commit is contained in:
Lance Edgar 2016-08-17 18:38:38 -05:00
parent 7eef6e6cf4
commit d94ed5e99c

View file

@ -128,7 +128,7 @@ class BatchMasterView(MasterView):
'rows_grid': grid.render_complete(allow_save_defaults=False), 'rows_grid': grid.render_complete(allow_save_defaults=False),
} }
if context['execute_enabled']: if context['execute_enabled'] and self.has_execution_options:
context['rendered_execution_options'] = self.render_execution_options() context['rendered_execution_options'] = self.render_execution_options()
return self.render_to_response('view', context) return self.render_to_response('view', context)