From df1dbfb9917a17a1a153113e2d5fcc2b529217d2 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 23 Sep 2014 14:41:06 -0400 Subject: [PATCH] Bug 12981 - Patron attribute type limit by patron category not working on patron entry form Content-Type: text/plain; charset="utf-8" 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 + +