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:34 +0000 (07:37 -0400)
commit02b97ecdcf500043a97513a1a31d6720c471a731
tree0f6b89e08cff01a826369f453bd3d6bec741f53d
parent10593eb8bcfe57567796ba72c9d19e0b69ce59d5
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>
(cherry picked from commit 09d36cee3c16b14acf0435531d1789486e0a0a44)

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt