Bug 36906 - Warning text: This record is used in %s order(s)...
Summary: Warning text: This record is used in %s order(s)...
Status: CLOSED WORKSFORME
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-21 09:58 UTC by Katrin Fischer
Modified: 2025-06-02 20:45 UTC (History)
1 user (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Crowdfunding committed: 0
Crowdfunding contact:
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.