Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion npd_project_module/utils/iteration_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def cancel_all_tasks_except_rfq(project_name, part_number, iteration_number):
cancelled_count = 0
for task in all_tasks:
# Skip RFQ Data task - it should never be cancelled (use stage_type for exact match)
if task.stage_type == rfq_stage_type:
if task.stage_type and task.stage_type == rfq_stage_type:
continue

# Cancel all other tasks regardless of their current status
Expand Down
2 changes: 1 addition & 1 deletion npd_project_module/utils/task_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def validate_task_cancellation(task_name, part_number, subject):
rfq_stage_type = task_sequence[0]["subject"] # RFQ Data stage_type is always first

# Use stage_type for exact matching instead of subject
if task_doc.stage_type == rfq_stage_type:
if task_doc.stage_type and task_doc.stage_type == rfq_stage_type:
return {
"valid": False,
"message": _(
Expand Down