Bug 10011: Save branch limitations on creating a new patron category
authorJonathan Druart <jonathan.druart@biblibre.com>
Fri, 10 Apr 2015 11:51:31 +0000 (13:51 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 19 May 2015 12:21:23 +0000 (09:21 -0300)
commit918c068e1709f94bffb6d3b58ce90c73a49c3ae4
treecfcf00d1d085d7157fb849bcfaffd78caf10ae65
parenteb0583d51da490582deffc9c15f59b94c4e9f966
Bug 10011: Save branch limitations on creating a new patron category

The code was just badly placed.
It should be executed on update but also on insert.

Test plan:
1/ Create a new patron category and select 1+ branch limitations
2/ Confirm it's correctly saved
3/ Edit it and change the branch limitations
4/ Confirm it's correctly saved

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
NOTE: Not a C4 or Koha library, so tests not required. Though,
      this code could be cleaned up and have the DB stuff put
      into some sort of library with tests to prevent regression.
      However, that dream is beyond the scope of this bug.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
admin/categorie.pl