Bug 16091

Summary: Can not delete branch category not used by any library
Product: Koha Reporter: Marc Véron <veron>
Component: System AdministrationAssignee: Marc Véron <veron>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: gmcharlt, hector.hecaxmmx, jonathan.druart
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16047
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 16091: Can not delete branch category not used by any library
[SIGNED-OFF]Bug 16091: Can not delete branch category not used by any library

Description Marc Véron 2016-03-17 13:55:31 UTC
To verify:
- Go to  Home > Administration > Libraries and groups
- Create a new group (make sure that you give it a Category code, see Bug 16047)
- Do not assign any library to this group
- Try to delete the group
Result:
"This library category cannot be deleted. 0 libraries are still using it."
Comment 1 Marc Véron 2016-03-17 14:10:50 UTC Comment hidden (obsolete)
Comment 2 Héctor Eduardo Castro Avalos 2016-03-17 16:17:55 UTC
Created attachment 49279 [details] [review]
[SIGNED-OFF]Bug 16091: Can not delete branch category not used by any library

Test plan

Without patch:
- Go to  Home > Administration > Libraries and groups
- Create a new group (make sure that you give it a Category code, see Bug 16047)
- Do not assign any library to this group
- Try to delete the group
Result:
"This library category cannot be deleted. 0 libraries are still using it."

With patch:
- Try to delete the group
Result OK: Confirmation dialog for deletion.
- Try to delete a group that is assigned to a library
Result OK: "This library category cannot be deleted. 1 libraries are still using it."

Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>
Works as advertised
Comment 3 Jonathan Druart 2016-03-18 16:46:39 UTC
Do not forget to use http://splitter.koha-community.org/files to avoid duplication of work.

*** This bug has been marked as a duplicate of bug 16015 ***