https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17492

--- Comment #31 from Jonathan Druart <[email protected]> 
---
Created attachment 56995
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=56995&action=edit
Bug 17492: Add a warning about age being of-limits and a button to update it

This patch adds a warning if a patron's age is out of limits if an assigned
category.
It also adds a button allowing to change the category.

Test plan:
1) Apply patch
2) Create a patron and assign him a category having age limits set
3) Change patron's age to be older/younger than category's limits
4) At "Check out" and "Details" tabs you should see a warning with a
button allowing to change the category, eg.:
 - http://prntscr.com/cz7ch3
 - http://prntscr.com/cz7em4
 - http://prntscr.com/cz7dj1
5) Set a valid category according to patron's age
6) Warning should disappear
7) Perform similar test again, but instead of changing the age change
the limits of a category
8) During tests verify "Change category" button everytime opens "Modify
patron" page:
  http://prntscr.com/cz7g5q

Tested all 4 patches together, works as expected
Signed-off-by: Marc Véron <[email protected]>

Bug 17492: Removed a line setting 'flagged' template parameter by mistake

Signed-off-by: Marc Véron <[email protected]>

Bug 17492: Fixed URL generation of "Change category" button

Signed-off-by: Marc Véron <[email protected]>

Bug 17492: Fixed forbidden patterns

Signed-off-by: Marc Véron <[email protected]>

Bug 17492: Removed extra IFs

Signed-off-by: Jonathan Druart <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to