Created attachment 51558 [details] Empty groups tables
Created attachment 51560 [details] [review] Bug 16523: Groups showing empty tables if no groups defined To test: 1) Go to Admin -> Libraries and Groups 2) Notice empty tables if nothing defined 3) Apply patch and refresh page 4) Empty tables should not show 5) Add a new group 6) Confirm table shows correctly Sponsored-by: Catalyst IT
Created attachment 51561 [details] [review] Bug 16532: Groups showing empty tables if no groups defined To test: 1) Go to Admin -> Libraries and Groups 2) Notice empty tables if nothing defined 3) Apply patch and refresh page 4) Empty tables should not show 5) Add a new group 6) Confirm table shows correctly Sponsored-by: Catalyst IT
Can we do the same for libraries? Even with no libraries defined, "[% IF libraries.size %]" always evaluates as true. Why?
> Even with no libraries defined, "[% IF libraries.size %]" always evaluates > as true. Why? Jonathan explained to me in IRC that because "libraries" is an object (from Koha::Libraries) we should use "count" instead: [% IF libraries.count %]...
Created attachment 51730 [details] [review] Bug 16532: Groups showing empty tables if no groups defined EDIT: Same change for libraries To test: 1) Go to Admin -> Libraries and Groups 2) Notice empty tables if nothing defined 3) Apply patch and refresh page 4) Empty tables should not show 5) Add a new group 6) Confirm table shows correctly Sponsored-by: Catalyst IT
Created attachment 51767 [details] [review] [SIGNED-OFF] Bug 16532: Groups showing empty tables if no groups defined EDIT: Same change for libraries To test: 1) Go to Admin -> Libraries and Groups 2) Notice empty tables if nothing defined 3) Apply patch and refresh page 4) Empty tables should not show 5) Add a new group 6) Confirm table shows correctly Sponsored-by: Catalyst IT Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Created attachment 51803 [details] [review] Bug 16532: Groups showing empty tables if no groups defined EDIT: Same change for libraries To test: 1) Go to Admin -> Libraries and Groups 2) Notice empty tables if nothing defined 3) Apply patch and refresh page 4) Empty tables should not show 5) Add a new group 6) Confirm table shows correctly Sponsored-by: Catalyst IT Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Pushed to Master - Should be in the November 2016 Release. Thanks!
Pushed in 16.05. Will be in 16.05.01.
Not needed in 3.22.x