Fix bug when viewing batch with no execution options
This commit is contained in:
parent
7eef6e6cf4
commit
d94ed5e99c
|
@ -128,7 +128,7 @@ class BatchMasterView(MasterView):
|
|||
'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()
|
||||
|
||||
return self.render_to_response('view', context)
|
||||
|
|
Loading…
Reference in a new issue