Bug 10053: borrowers.branchcode cannot be null
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 15 Apr 2013 12:27:46 +0000 (14:27 +0200)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Wed, 1 May 2013 11:37:27 +0000 (07:37 -0400)
commit09d36cee3c16b14acf0435531d1789486e0a0a44
tree7e50ded029b9c8ab4f7609a0b81f8fdd9e0fe2e9
parent209863e5e4c3a868f6ef052793f410826b2c082d
Bug 10053: borrowers.branchcode cannot be null

The DB field borrowers.branchcode cannot be null (`branchcode`
varchar(10) NOT NULL default ''). However, an empty value can be selected
on creating/updating a patron.

Test plan:
- Add or edit a patron and choose the empty value for library
(branchcode).
- Save (pref BorrowerMandatoryField must not contain branchcode).
- Mysql raises an error.
- Apply the path.
- Check that you are not able to select no library.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt