From efe3cbf85a042b0b7b2baa43fcaa5a36b187450b 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 Signed-off-by: Chris Nighswonger --- .../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 baba4c8939..e147d53ab4 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