Actions in detail view not working when approved
* Due to the batch actions looking in the table for the actions the action would fail because tasks in the approved state would not be present in the default active table. * Adding a condition to get the correct table actions. Change-Id: Iac75ecc5ce91952e0f26746045113024aad6cbb2
This commit is contained in:
parent
588a15bdbd
commit
0d8384a5f2
|
@ -52,7 +52,10 @@ class TaskDetailView(tabs.TabView):
|
|||
return context
|
||||
|
||||
def _get_actions(self, task):
|
||||
table = task_tables.TaskTable(self.request)
|
||||
if task.status == 'Approved; Incomplete':
|
||||
table = task_tables.ApprovedTaskTable(self.request)
|
||||
else:
|
||||
table = task_tables.TaskTable(self.request)
|
||||
return table.render_row_actions(task)
|
||||
|
||||
@memoized.memoized_method
|
||||
|
|
Loading…
Reference in New Issue