From 5a38631838b494079a1d0ad5fc7bdb706dacadc4 Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Tue, 2 Oct 2012 16:30:48 +0200 Subject: [PATCH] Bug 8863: When clearing a patron attribute, they are all cleared Signed-off-by: Marc Veron 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 --- .../intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt index 96e17c5b2d..6516344c8e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -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', ''); } -- 2.39.5