[Koha-bugs] [Bug 17817] Repeat this Tag (cloning) not working

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 12 09:52:12 CET 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17817

Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #58848|0                           |1
        is obsolete|                            |
  Attachment #58849|0                           |1
        is obsolete|                            |

--- Comment #21 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 58863
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=58863&action=edit
Bug 17817: Fix cloning subfields using select2

Based on Jonathan's patch (the DO NOT PUSH one), I put together this fix.
What was changed is that select2 is reinitialized only after the cloned element
has been appended to the DOM (so that select2 can correctly calculate the
field's
width). Also, I changed the selectors that searched for the line divs (for
reordering)
and for the subfield's input element (for erasing the field's value) to be more
specific,
since select2 introduced divs that broke some assumptions about the expected
HTML structure

Signed-off-by: Josef Moravec <josef.moravec at gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
I confirm that these 2 patches fix the add item and mod biblio views as
well as the batch item modification tools.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list