Bug 8863: When clearing a patron attribute, they are all cleared
authorFridolyn SOMERS <fridolyn.somers@biblibre.com>
Tue, 2 Oct 2012 14:30:48 +0000 (16:30 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 12 Oct 2012 19:39:53 +0000 (21:39 +0200)
Signed-off-by: Marc Veron <veron@veron.ch>
Tested with a set of 2 additional patron attributes. Cleard both before applying the patch.
Cleared as expected after applying the patch.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt

index 96e17c5..6516344 100644 (file)
@@ -36,7 +36,7 @@
     });
 
     function clear_entry(node) {
-        var original = node.parentNode.parentNode;
+        var original = $(node).parent();
         $("textarea", original).attr('value', '');
         $("select", original).attr('value', '');
     }