Koha/koha-tmpl/intranet-tmpl/prog/en/modules/members
Jonathan Druart fc35a5099f Bug 16458: Update library when a guarantor is set
If you edit a patron from the Edit link of the patron information block
(step 1 of the memberentry script), the branchcode is not displayed. If
you set a guarantor to a child from this form, a JavaScript error will
be raised:
  JavaScript error form.branchcode is undefined

It happens because there is the branchcode is not displayed and there is
no element with a branchcode name.

To avoid this issue, a branchcode hidden input is added to the form and
it will be updated when a guarantor is selected (same behavior as when
you edit a patron using the complete form).

Test plan:
Edit a patron using the Edit link of the patron info block (not the Edit
button in the toolbar)
Set a guarantor
=> Notice that the branchcode of the patron has been updated with the
branchcode of the guarantor

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
2016-06-04 06:57:39 +00:00
..
tables Bug 16450 - Remove the use of "onclick" from guarantor search template 2016-05-31 11:53:32 +00:00
boraccount.tt Bug 16200: Make 'Hold waiting too long' translatable and give it an unique accounttype 2016-05-31 08:50:36 +00:00
deletemem.tt
discharge.tt Bug 15542: Always display the patron's info the same way. 2016-01-23 19:15:08 +00:00
discharges.tt Bug 8007: Discharge management 2015-04-30 12:33:56 -03:00
files.tt Bug 15542: Always display the patron's info the same way. 2016-01-23 19:15:08 +00:00
mancredit.tt Bug 4041: Third step - Display address on patron's pages using the system preference 2015-04-29 11:25:11 -03:00
maninvoice.tt Bug 4041: Third step - Display address on patron's pages using the system preference 2015-04-29 11:25:11 -03:00
member-flags.tt Bug 16238: Use .prop() instead of .attr() for 'disabled' 2016-04-29 14:18:24 +00:00
member-password.tt Bug 14509: (follow-up) Reject invalid passwords 2015-09-28 11:51:09 -03:00
member.tt Bug 16316 - Limit patron search to surname 2016-04-29 15:53:24 +00:00
memberentrygen.tt Bug 16458: Update library when a guarantor is set 2016-06-04 06:57:39 +00:00
members-update.tt Bug 12402: Show patron category on pending patron modifications 2016-06-03 08:46:03 +00:00
moremember-brief.tt Bug 14990: Format the date template-side for moremember 2015-10-19 10:13:02 -03:00
moremember-print.tt Bug 16218: printfeercpt.tt (and others) does not include jQuery 2016-04-29 14:14:54 +00:00
moremember-receipt.tt Bug 16218: printfeercpt.tt (and others) does not include jQuery 2016-04-29 14:14:54 +00:00
moremember.tt Bug 16642 - Fix capitalisation for upload patron image 2016-06-03 11:04:23 +00:00
nl-search.tt Bug 15304: Remove Norwegian strings from nl-search.tt 2015-12-30 23:39:57 +00:00
notices.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
pay.tt Bug 16200: Make 'Hold waiting too long' translatable and give it an unique accounttype 2016-05-31 08:50:36 +00:00
paycollect.tt Bug 4041: Third step - Display address on patron's pages using the system preference 2015-04-29 11:25:11 -03:00
printfeercpt.tt Bug 16218: printfeercpt.tt (and others) does not include jQuery 2016-04-29 14:14:54 +00:00
printinvoice.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
purchase-suggestions.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
readingrec.tt Bug 16478: Fix checkout history tabs - intranet 2016-05-23 17:22:04 +00:00
routing-lists.tt Bug 15542: Always display the patron's info the same way. 2016-01-23 19:15:08 +00:00
statistics.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
update-child.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00