Bug 36906

Summary: Warning text: This record is used in %s order(s)...
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: RESOLVED WORKSFORME QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: m.de.rooy
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Katrin Fischer 2024-05-21 09:58:35 UTC
Warning: This record is used in %s order(s). These orders will be cancelled. Are you sure you want to delete this record?

Are we missing "active" or "pending" before the orders here?

koha-tmpl/intranet-tmpl/prog/js/catalog.js:36
Comment 1 Katrin Fischer 2024-06-30 15:38:40 UTC
Marcel, can you please confirm (or not)?
Comment 2 Marcel de Rooy 2024-09-27 09:50:10 UTC
(In reply to Katrin Fischer from comment #0)
> Warning: This record is used in %s order(s). These orders will be cancelled.
> Are you sure you want to delete this record?
> 
> Are we missing "active" or "pending" before the orders here?
> 
> koha-tmpl/intranet-tmpl/prog/js/catalog.js:36

Sorry for this late reply.
The addbiblio script tries to cancel all attached orders:
        my @result = Koha::Acquisition::Orders->search( { biblionumber => $biblionumber } )->cancel;

So the message could be left as-is.

CLosing this report. Reopen if needed.