Bug 2746 - Modify a patron, and set an empty expiry date create an error
Summary: Modify a patron, and set an empty expiry date create an error
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: Main
Hardware: PC All
: PATCH-Sent (DO NOT USE) normal
Assignee: Nahuel Angelinetti
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-30 09:10 UTC by Nahuel Angelinetti
Modified: 2021-01-18 15:19 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
fix the bug (1.08 KB, patch)
2008-10-30 09:14 UTC, Chris Cormack
Details | Diff | Splinter Review
replace the previous patch (3.78 KB, patch)
2008-10-31 07:55 UTC, Chris Cormack
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Cormack 2010-05-21 00:55:24 UTC


---- Reported by nahuel.angelinetti@biblibre.com 2008-10-30 09:10:17 ----

Actually, when you modify a patron, and you set an empty field as expiry date, it set a "0000-00-00" date as the expiration date (too bad!), so it breaks the expiration date.
Better is to keep the actual date(in the db), and force the admin to use the "Renew" button if he want to renew the expiration date.



---- Additional Comments From nahuel.angelinetti@biblibre.com 2008-10-30 09:14:11 ----

Created an attachment
fix the bug





---- Additional Comments From nahuel.angelinetti@biblibre.com 2008-10-31 07:55:48 ----

Created an attachment
replace the previous patch





---- Additional Comments From gmcharlt@gmail.com 2008-11-06 14:23:47 ----

Patch pushed to 3.1.  Please test and close.



--- Bug imported by chris@bigballofwax.co.nz 2010-05-21 00:55 UTC  ---

This bug was previously known as _bug_ 2746 at http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=2746
Imported an attachment (id=823)
Imported an attachment (id=824)

Actual time not defined. Setting to 0.0
The original submitter of attachment 823 [details] [review] is unknown.
   Reassigning to the person who moved it here: chris@bigballofwax.co.nz.
The original submitter of attachment 824 [details] [review] is unknown.
   Reassigning to the person who moved it here: chris@bigballofwax.co.nz.