From 33f3d4de1d279263845256b3c764ce2fa338ef7a Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 29 Oct 2010 07:40:37 -0400 Subject: [PATCH] bug 5162: follow-up patch to not clear hidden input setting attribute type Otherwise, can't saved new attributes set from a cloned input or select control. Signed-off-by: Galen Charlton Signed-off-by: Chris Cormack --- .../intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl index b0741ec2e9..50a7bb11aa 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl @@ -46,7 +46,8 @@ $("select", clone).attr('name', function() { return this.name.replace(/patron_attr_\d+/, 'patron_attr_' + newId); }); - $("input,select", clone).attr('value',''); + $("input#patron_attr_" + newId, clone).attr('value',''); + $("select#patron_attr_" + newId, clone).attr('value',''); original.parentNode.insertBefore(clone, original.nextSibling); } -- 2.39.5