[Koha-bugs] [Bug 11846] Correct database update for debarments with 9999-12-31

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 25 09:05:27 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11846

Fridolin SOMERS <fridolyn.somers at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #25637|0                           |1
        is obsolete|                            |

--- Comment #8 from Fridolin SOMERS <fridolyn.somers at biblibre.com> ---
Created attachment 26542
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26542&action=edit
Bug 11846 - Correct database update for debarments with 9999-12-31

The borrowers with infinite debarments have borrowers.debarred with
'9999-12-31'.
Database update for this bug contained :
  INSERT INTO borrower_debarments ( borrowernumber, expiration, comment )
SELECT borrowernumber, debarred, debarredcomment FROM borrowers WHERE debarred
IS NOT NULL
For borrowers where borrowers.debarred is '9999-12-31', this value is copied
into borrower_debarments.expiration.
This is not correct because borrower_debarments.expiration must be NULL for
infinite debarments.

This patch corrects update 3.13.00.035 and also adds an update for databases
already updated.

Test plan :
- Use a database with verison 3.13.00.000
- Set a borrower as restricted for ever (leave until empty)
- Use sources to master + patch
- Perform updatedatabase
- Look at borrower details, tab "Restrictions"
=> Without patch, you see Expiration 31/12/9999
=> With patch, you see Expiration Infinite

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


More information about the Koha-bugs mailing list