From 27397984c292ab2eaaa3933dca8ea21db6f42bb6 Mon Sep 17 00:00:00 2001 From: Tomas Hykel Date: Wed, 3 Jun 2026 12:43:46 +0200 Subject: [PATCH] add a comment --- app/controllers/work_packages/bulk_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/work_packages/bulk_controller.rb b/app/controllers/work_packages/bulk_controller.rb index 10349312d5d..44a3627701f 100644 --- a/app/controllers/work_packages/bulk_controller.rb +++ b/app/controllers/work_packages/bulk_controller.rb @@ -139,6 +139,8 @@ class WorkPackages::BulkController < ApplicationController return attributes unless WorkPackage::SemanticIdentifier.semantic_id?(raw.to_s) wp = WorkPackage.find_by_display_id(raw) + # If the semantic ID hasn't resolved to a proper package, default to 0, which is an invalid value + # that will trigger errors in the main update service attributes.merge(parent_id: wp ? wp.id : 0) end