From: Kathy Lussier Date: Thu, 25 Feb 2016 17:26:02 +0000 (-0500) Subject: LP#1422802 Fix javascript validation for visible parts X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=489dba386a4be2a950149e4cf28f106b6fa4a1d6;p=evergreen%2Fmasslnc.git LP#1422802 Fix javascript validation for visible parts The previous javascript validation was not working for records with just one part. This one works better. Many thanks to Dan Wells for identifying the fix. Signed-off-by: Kathy Lussier Signed-off-by: Ben Shum --- diff --git a/Open-ILS/src/templates/opac/parts/js.tt2 b/Open-ILS/src/templates/opac/parts/js.tt2 index e6ec184322..6135a239ca 100644 --- a/Open-ILS/src/templates/opac/parts/js.tt2 +++ b/Open-ILS/src/templates/opac/parts/js.tt2 @@ -133,7 +133,7 @@ var aou_hash = { return false; } function validateHoldForm() { - if (validateRadioSelection (document.forms["PlaceHold"]["part"])) + if (validateRadioSelection (document.getElementsByName("part"))) { return true; }