Koha/koha-tmpl/intranet-tmpl/prog/en/modules/members
Owen Leonard 101ba17685 Bug 16066 - JavaScript error on new patron form when duplicate is suspected
When a new patron is submitted which is suspected to be a duplicate, the
entry form is redisplayed with a new name attribute, "form_nodouble."
Other scripts on the page still look for a form named "form," so there
is an error.

This patch removes the use of "form_nodouble" on the assumption that it
is unnecessary to name the form something different when a duplicate is
suspected. All the same validation scripts should be run on the form
either way.

To test, apply the patch and clear your cache if necessary.

- Go to Patrons -> New patron and add a patron which matches an existing
  one in order to trigger the duplicate warning.
- Confirm that Firebug (or similar) is not reporting a JavaScript error.
- Confirm that the 'Edit existing' and 'Save as new' buttons work
  correctly.

Reproduced JavaScript error and verified that it no longer appears with
this patch.
Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
2016-03-21 21:33:49 +00:00
..
tables Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
boraccount.tt Bug 15927 - Remove use of <tr class="highlight"> for alternating row colors 2016-03-02 22:07:13 +00:00
deletemem.tt Bug 11401: Add support for Norwegian national library card 2014-11-14 09:42:23 -03:00
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 13632: Use an include file to display permissions 2015-10-19 09:38:04 -03:00
member-password.tt Bug 14509: (follow-up) Reject invalid passwords 2015-09-28 11:51:09 -03:00
member.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
memberentrygen.tt Bug 16066 - JavaScript error on new patron form when duplicate is suspected 2016-03-21 21:33:49 +00:00
members-update.tt Bug 15195 - patron details should open in tab 2016-01-27 04:21:58 +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 Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
moremember-receipt.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
moremember.tt Bug 15656: Move guarantor/guarantees code - GetGuarantees 2016-03-12 23:40:10 +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 12426: Allow resend for sent messages 2016-03-03 20:16:07 +00:00
pay.tt Bug 15542: Always display the patron's info the same way. 2016-01-23 19:15:08 +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 14926: Format the date according to the dateformat syspref 2015-10-19 09:58:17 -03:00
printinvoice.tt Bug 12415: Fee receipt: a charges description should be displayed in all cases 2014-11-21 20:14:02 -03:00
purchase-suggestions.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
readingrec.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +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 15542: Always display the patron's info the same way. 2016-01-23 19:15:08 +00:00
update-child.tt Bug 11717 - Use new DataTables include in member templates 2014-02-27 15:33:26 +00:00