[Koha-bugs] [Bug 3544] Value builder plug-ins don't work with repeatable subfields

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jun 8 11:02:32 CEST 2022


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

Jonathan Druart <jonathan.druart+koha at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonathan.druart+koha at gmail.
                   |                            |com

--- Comment #4 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Did you try that?

diff --git a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js
b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js
index 16cf8574968..afc1c3caa42 100644
--- a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js
+++ b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js
@@ -433,7 +433,7 @@ function AddEventHandlers (oldcontrol, newcontrol,
newinputid ) {
 // newinputid is the id attribute of the cloned controlling input field
 // Note: This code depends on the jQuery data for events; this structure
 // is moved to _data as of jQuery 1.8.
-    var ev= $(oldcontrol).data('events');
+    var ev= $._data($(oldcontrol)[0], 'events');
     if(typeof ev != 'undefined') {
         $.each(ev, function(prop,val) {
             $.each(val, function(prop2,val2) {

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


More information about the Koha-bugs mailing list