[Koha-bugs] [Bug 32610] Add ability to specify patron attribute as a date

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 22 15:43:02 CET 2023


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

Pedro Amorim <pedro.amorim at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Signed Off                  |Failed QA

--- Comment #33 from Pedro Amorim <pedro.amorim at ptfs-europe.com> ---
Failing QA here:

- Missing tests
- import_borrowers.tt should check if a given patron_attribute that's being
added is is_date and validate the data accordingly, else the following bug may
occur:

1) Create a patron attribute type of is_date as per the original test plan,
named 'date'
2) Import a patron, visit:
/cgi-bin/koha/tools/import_borrowers.pl
3) Click "Download a Starter CSV file with all the columns." and add a
cardnumber, categorycode, branchcode and on the patron_attributes column put
date:test
4) Import, notice the import is successful, now visit that patron edit page (do
a search for the imported cardnumber), e.g. example for patron id 289:
/cgi-bin/koha/members/moremember.pl?borrowernumber=289
5) Notice it blows up with error:
Template process failed: undef error - The given date (teste) does not match
the date format (iso) at /kohadevbox/koha/Koha/DateUtils.pm line 205.
 at /kohadevbox/koha/C4/Templates.pm line 127

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


More information about the Koha-bugs mailing list