[Koha-bugs] [Bug 17492] Show warning if patron's age is out of category limits

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jun 26 20:34:47 CEST 2019


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

Josef Moravec <josef.moravec at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #68139|0                           |1
        is obsolete|                            |
  Attachment #68140|0                           |1
        is obsolete|                            |
  Attachment #68141|0                           |1
        is obsolete|                            |
  Attachment #68142|0                           |1
        is obsolete|                            |
  Attachment #68143|0                           |1
        is obsolete|                            |
  Attachment #68144|0                           |1
        is obsolete|                            |
  Attachment #68145|0                           |1
        is obsolete|                            |

--- Comment #60 from Josef Moravec <josef.moravec at gmail.com> ---
Created attachment 91028
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=91028&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
9) Ensure that left-side panel is always on its expected place
10) Remove patron's date of birth and test that all categories are
allowed now
11) Run automated tests: prove t/db_dependent/Koha/Patron.t

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

Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list