Force update resource when adding new resource / transfer to another resource

location not passed to ItemizedCarrier when assign child resource

Fix size not pass through.
This commit is contained in:
Xuwznln
2026-01-08 03:04:32 +08:00
parent 024156848e
commit 3f80349d7d
3 changed files with 15 additions and 6 deletions

View File

@@ -149,6 +149,7 @@ class ItemizedCarrier(ResourcePLR):
if not reassign and self.sites[idx] is not None:
raise ValueError(f"a site with index {idx} already exists")
location = list(self.child_locations.values())[idx]
super().assign_child_resource(resource, location=location, reassign=reassign)
self.sites[idx] = resource