Bug 41178 - SIP2 module does not notify that linked accounts are deleted when deleting an institution
Summary: SIP2 module does not notify that linked accounts are deleted when deleting an...
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: SIP2 (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Pedro Amorim
QA Contact: Testopia
URL:
Keywords:
Depends on: 37893
Blocks:
  Show dependency treegraph
 
Reported: 2025-11-04 15:50 UTC by Pedro Amorim
Modified: 2025-11-04 16:15 UTC (History)
4 users (show)

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


Attachments
Bug 41178: Fix accounts.getAll API client to be used for searching (1.22 KB, patch)
2025-11-04 15:51 UTC, Pedro Amorim
Details | Diff | Splinter Review
Bug 41178: (VueJS framework): Add beforeDoResourceDelete method (5.99 KB, patch)
2025-11-04 15:51 UTC, Pedro Amorim
Details | Diff | Splinter Review
Bug 41178: (VueJS framework): Add i18n.deleteConfirmationBody (3.49 KB, patch)
2025-11-04 15:51 UTC, Pedro Amorim
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Pedro Amorim 2025-11-04 15:50:21 UTC

    
Comment 1 Pedro Amorim 2025-11-04 15:51:40 UTC
Created attachment 189034 [details] [review]
Bug 41178: Fix accounts.getAll API client to be used for searching
Comment 2 Pedro Amorim 2025-11-04 15:51:42 UTC
Created attachment 189035 [details] [review]
Bug 41178: (VueJS framework): Add beforeDoResourceDelete method
Comment 3 Pedro Amorim 2025-11-04 15:51:44 UTC
Created attachment 189036 [details] [review]
Bug 41178: (VueJS framework): Add i18n.deleteConfirmationBody

Otherwise, we're unable to override the contents of the delete dialog

This and the previous patch allow fetching related accounts on the fly
when attempting to delete an institutions. This allows to provide a
message stating how many (or which) accounts will be deleted if the
selected institution is deleted.

The way its implemented applies for both deleting the resource from the
list or from the 'show' page.

If the institution does not have any associated accounts, the delete
dialog's behavior is the same as it was before.