Bug 17384 - Categories do not display in patron editing form if they have only one...
authorMarc Véron <veron@veron.ch>
Fri, 30 Sep 2016 15:48:44 +0000 (17:48 +0200)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Mon, 10 Oct 2016 07:59:19 +0000 (07:59 +0000)
commit6f4f32f4bc1f2176c60fe34cf37b3822f08481aa
treed0edcc60e508938f9551a10d07bd94024798c88d
parentfe0fc226c524d6f63c8d64af7a0c8b2c5ac7198f
Bug 17384 - Categories do not display in patron editing form if they have only one category assigned

To reproduce:
- Go to Home > Administration > Patron categories
- Make sure that you have only one category for a category type.
  Examples: Only one category "Staff" for category type "Staff" or
  Only one category "Library" for category type "Org."
- Edit a patron or create a new patron
- Verify that categories of examples above do not show up in category drop down
- Go back to Home > Administration > Patron categories and add categories to
  both category types
- Edit or create a new patron. Veryfy that categories show up in dropdown.

To test:
- Apply patch
- Make sure you have a category type with only one category assigned
  (e.g. category taype Staff with category Staff)
- Edit a patron or create a new patron. Verify that the category
  shows up in categroy drop down.

- Additional test: Verify that template param 'catcode' from removed line
  is not used in template memberentrygen.tt

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
members/memberentry.pl