Bug 16092

Summary: Fix error dialog and use Font Awesome Icons when deleting branch group
Product: Koha Reporter: Héctor Eduardo Castro Avalos <hector.hecaxmmx>
Component: TemplatesAssignee: Héctor Eduardo Castro Avalos <hector.hecaxmmx>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: aleisha, brendan, hector.hecaxmmx, jonathan.druart, oleonard, veron
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15784
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16015
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 16047    
Bug Blocks:    
Attachments: Bug 16092: Introduce the Font Awesome icons when delete a branch category.
Bug 16092: Introduce the Font Awesome icons when delete a branch category.
Bug 16092: Fix error dialog and introduce the Font Awesome icons when delete a branch category
Bug 16092: Fix error dialog and introduce the Font Awesome icons when delete a branch category
Bug 16092: Fix error dialog and introduce the Font Awesome icons when delete a branch category

Description Héctor Eduardo Castro Avalos 2016-03-17 16:24:15 UTC
Found when signed-off bug 16091.

Introduce the Font Awesome icons when delete a branch category.

Also change admin/branch.pl   type => 'error' to type => 'alert' to fit with wiki <https://wiki.koha-community.org/wiki/Interface_patterns#Errors_and_messages>
Comment 1 Héctor Eduardo Castro Avalos 2016-03-17 16:41:12 UTC Comment hidden (obsolete)
Comment 2 Marc Véron 2016-03-17 16:57:47 UTC Comment hidden (obsolete)
Comment 3 Héctor Eduardo Castro Avalos 2016-03-18 17:34:37 UTC
Still applies without DUPLICATE BUG 16091, the patch applies in both ways applying on top 16047 only or applying 16047 and 16015 on top.

>Using index info to reconstruct a base tree...
>Falling back to patching base and 3-way merge...
>Auto-merging admin/branches.pl
Comment 4 Katrin Fischer 2016-03-20 22:02:03 UTC
Sorry, but this no longer applies:
Apply? [(y)es, (n)o, (i)nteractive] y
Applying: Bug 16092: Introduce the Font Awesome icons when delete a branch category.
fatal: sha1 information is lacking or useless (admin/branches.pl).

The patch code also seems to include a lot more than the Font Awesome icon change - please correct bug title to reflect this :)
Comment 5 Héctor Eduardo Castro Avalos 2016-03-29 15:01:57 UTC Comment hidden (obsolete)
Comment 6 Héctor Eduardo Castro Avalos 2016-03-29 15:08:14 UTC Comment hidden (obsolete)
Comment 7 Jonathan Druart 2016-03-31 12:36:36 UTC
Created attachment 49733 [details] [review]
Bug 16092: Fix error dialog and introduce the Font Awesome icons when delete a branch category

Also change admin/branch.pl   type => 'error' to type => 'alert' to fit
with wiki <https://wiki.koha-community.org/wiki/Interface_patterns#Errors_and_messages>

To test:
1) Go to Admin -> Libraries and groups
2) Try to delete a library with patrons and bib items
3) See the error message in yellow
4) Try to delete a branch category/group without any library attached
   to it
5) Apply patch and repeat steps 1 to 4. Notice about the changes
6) Test buttons Yes, delete and No, do not delete and verify that they
   work as expected

Signed-off-by: Marc Véron <veron@veron.ch>

NOTE: Patch rebased and reword title according with QA comment 4

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 8 Brendan Gallagher 2016-03-31 19:39:26 UTC
Pushed to Master - Should be in the May 2016 release.  Thanks!