Bug 29085

Summary: Add an alert when deleting a vendor linked to a subscription
Product: Koha Reporter: Marjorie Barry-Vila <marjorie.barry-vila>
Component: AcquisitionsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: koha
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Marjorie Barry-Vila 2021-09-22 19:33:19 UTC
Hi,

Currently (20.05), when deleting a vendor, there is no alert to check if a subscription is linked to the vendor.

if the vendor is deleted anyway, in the subscription, the vendor box is empty but the booksellerid remains visible.

When editing a subscription, an error message appears because the vendor is no longer found.

see the following video https://www.screencast.com/t/5oi85cCFGclS

Can an alert be added to mean that the vendor should not be deleted as it is used in a subscription?

Regards,

Marjorie
Comment 1 Katrin Fischer 2022-07-17 11:43:41 UTC
This is still valid on master. 

I think we should have a warning/confirmation message at least.

If the vendor is deleted, the aqbooksellerid column in subscription should be set to NULL.
Comment 2 Koha collecto 2024-05-24 17:32:01 UTC
+1