Skip to content
Snippets Groups Projects
Commit ce3a1778 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

handling stakeholder feedback

do not change sas_id priority for discarded and suspended tasks
parent 819290fc
No related branches found
No related tags found
3 merge requests!333get all the new changes from master into the branch,!330still a bug,!328Solving Feature SDCP-239
Pipeline #68423 passed
...@@ -1389,6 +1389,7 @@ def ChangePrioritySasID(request, pk, priority_change, page=0): ...@@ -1389,6 +1389,7 @@ def ChangePrioritySasID(request, pk, priority_change, page=0):
tasks = Task.objects.filter(sas_id=task.sas_id) tasks = Task.objects.filter(sas_id=task.sas_id)
for task in tasks: for task in tasks:
if task.status not in ['discarded','suspended']:
priority = task.priority + int(priority_change) priority = task.priority + int(priority_change)
if priority < 0: if priority < 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment