Bug 27893: (QA follow-up) Rephrase warning

See comment24 as well.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Marcel de Rooy 2024-04-19 07:05:53 +00:00 committed by Katrin Fischer
parent c1a983a7c7
commit 82270fb7e7
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -33,7 +33,7 @@ function confirm_deletion(link) {
is_confirmed = alert(__("%s item(s) are attached to this record. You must delete all items before deleting this record.").format(count));
} else if (countorders > 0){
if( order_manage_permission ){
is_confirmed = confirm(__("Warning: This record is used in %s order(s). Deleting it could cause serious issues on acquisition module. Are you sure you want to delete this record?").format(countorders));
is_confirmed = confirm(__("Warning: This record is used in %s order(s). These orders will be cancelled. Are you sure you want to delete this record?").format(countorders));
} else {
is_confirmed = alert(__("%s order(s) are using this record. You need order managing permissions to delete this record.").format(countorders));
}