Bug 5735

Summary: Expanding/collapsing cloned fields in editor takes original field
Product: Koha Reporter: Marcel de Rooy <m.de.rooy>
Component: CatalogingAssignee: Marcel de Rooy <m.de.rooy>
Status: CLOSED FIXED QA Contact: Bugs List <koha-bugs>
Severity: normal    
Priority: PATCH-Sent (DO NOT USE) CC: chris, colin.campbell, koha.sekjal
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Patch

Description Marcel de Rooy 2011-02-10 10:38:34 UTC
Add a new field by cloning with + button.
Expand/collapse the new field by clicking the field label (marc field name).
The original (first) field expands/collapses.

Patch corrects this bug in javascript.
Comment 1 Marcel de Rooy 2011-02-10 10:44:07 UTC
Created attachment 3120 [details] [review]
Patch
Comment 2 Marcel de Rooy 2011-02-10 11:26:11 UTC
Additional observation: the removed code did no longer work, because the ? link was added recently to the marc loc page. This url in the cloned fields now does the expanding and collapsing of the right field. This behavior comes from just adjusting the onclick of the first link in the array and not testing it (in the old code).

The new code tests the class of the link, restoring the correct behavior of both links.
Comment 3 Chris Cormack 2011-02-13 20:56:48 UTC
Pushed, please test and mark resolved