Fix for Bug 5162, patron attributes 'new' link should create blank value
authorOwen Leonard <oleonard@myacpl.org>
Fri, 29 Oct 2010 11:40:36 +0000 (07:40 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 2 Nov 2010 01:40:08 +0000 (14:40 +1300)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl

index 3e4ae38..b0741ec 100644 (file)
@@ -46,6 +46,7 @@
         $("select", clone).attr('name', function() {
             return this.name.replace(/patron_attr_\d+/, 'patron_attr_' + newId);
         });
+        $("input,select", clone).attr('value','');
         original.parentNode.insertBefore(clone, original.nextSibling);
     }