Koha/koha-tmpl/intranet-tmpl/prog/en
Owen Leonard dcad4c38d2 Bug 12981 - Patron attribute type limit by patron category not working on patron entry form
To reproduce this bug:

- Create a patron attribute type and limit it by patron category
- Create a new patron with that category
- Observe that there is no entry field for the patron attribute type you
  created for that patron category. Inspecting the source should show
  that the entry field has been hidden.

The patron entry form tries to hide patron attribute type input fields
based on the currently selected patron category. It does this based on
the value of $("categorycode"). However, instead of pulling the data
from the categorycode input in the body of the entry form, it pulls it
from the patron search box at the top of the page. The value of that
input is always empty because no category is preselected.

This patch corrects the problem by changing the ID of the categorycode
<select> in the body of the entry form and making corresponding changes
to the JavaScript which depends on it.

To test, apply the patch and load the patron entry form for a patron
category to which a patron attribute type has been limited. That patron
attribute entry field should appear correctly.

Choose a different patron category from the "Category" dropdown. Confirm
that the patron attribute entry field has been hidden.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2014-11-21 15:25:03 -03:00
..
css Bug 13151 - staff marc preview not wrapping 2014-11-21 15:04:00 -03:00
data
includes Bug 12971 - Regression: Patron print summary doesn't show checkouts 2014-11-19 09:49:01 -03:00
js Bug 13195 - Regression: Circulation checkouts table no longer shows item type description 2014-11-16 21:35:09 -03:00
lib/yui Bug 13139 - Move treeview jQuery plugin outside of language-specific directory 2014-10-27 12:36:53 -03:00
modules Bug 12981 - Patron attribute type limit by patron category not working on patron entry form 2014-11-21 15:25:03 -03:00
xslt Bug 13151 - staff marc preview not wrapping 2014-11-21 15:04:00 -03:00
columns.def Bug 11673: columns.def has swapped last and first name of alt contact 2014-08-07 16:17:21 -03:00