]> git.koha-community.org Git - koha.git/commit
Bug 7919: FIX the "all" categories method
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 17 Dec 2012 10:04:07 +0000 (11:04 +0100)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Wed, 2 Jan 2013 21:50:52 +0000 (16:50 -0500)
commit7dacc32501fc890235624752407c71a9f1be1b0e
tree4509b0c7df8c2188e72ce8fd570b07e23a140ed8
parent3eec0e96ecac50c560640b4525f12adaf36b7122
Bug 7919: FIX the "all" categories method

The C4::Category->all method must return fields from the categories
table only.
Without this patch, there is 2 "categorycode" values, the second one is
sometimes undef (if no branch limitation).

same for the GetBorrowercategoryList routine (some category codes are
undefined)

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Liz Rea <liz@catalyst.net.nz>
Signed off for also fixing problems with patron searching noted by Katrin.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Problems fixed by this patch include:
- on patron search result list the category description is shown again
- it's possible to limit a patron search to a patron category again

All tests pass.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
C4/Category.pm
C4/Members.pm