Bug 16091 - Can not delete branch category not used by any library
Summary: Can not delete branch category not used by any library
Status: RESOLVED DUPLICATE of bug 16015
Alias: None
Product: Koha
Classification: Unclassified
Component: System Administration (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Marc Véron
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-17 13:55 UTC by Marc Véron
Modified: 2016-03-29 15:04 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 16091: Can not delete branch category not used by any library (1.42 KB, patch)
2016-03-17 14:10 UTC, Marc Véron
Details | Diff | Splinter Review
[SIGNED-OFF]Bug 16091: Can not delete branch category not used by any library (1.50 KB, patch)
2016-03-17 16:17 UTC, Héctor Eduardo Castro Avalos
Details | Diff | Splinter Review

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