Bug 10769 - Simplify clearing of input fields when duplicating a patron
authorOwen Leonard <oleonard@myacpl.org>
Tue, 20 Aug 2013 13:07:25 +0000 (09:07 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Sun, 8 Sep 2013 06:30:03 +0000 (06:30 +0000)
commit1c8c9bb0fe23addc624e2a97331c8ec9cd80a9dd
treeb7e26e3a86d2fc57464bf093c6f0263d304e4eb2
parente30612bb3f0465363842ff4269245095d32dee3b
Bug 10769 - Simplify clearing of input fields when duplicating a patron

When duplicating a patron record an onclick event is added to many
fields in order to make then clear when focused. This patch updates the
template so that the logic for this can be simplified. A template
variable is set based on the 'opduplicate' variable, and a class added
to the relevant fields. All fields with that class are cleared on focus.

Also changed are several markup issues which were causing validation
errors.

To test, find or create a patron record which has all standard text
fields filled with data. Use the "duplicate" button on the detail view
of that patron to initiate the duplication process.

Focus on each field in the patron entry form in succession. Fields which
contain data should be cleared in the same way they were before the
patch.

Also test a regular edit operation to confirm that fields are not
cleared.

Signed-off-by: Campbell Reid-Tait <campbellreidtait@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Passes koha-qa.pl, works as advertised.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt