From 393058d7db9462e594629c790141481df58ff925 Mon Sep 17 00:00:00 2001 From: ray-wright <34744834+ray-wright@users.noreply.github.com> Date: Thu, 19 Mar 2020 12:57:26 -0400 Subject: [PATCH] Wrap value in single quotes Wrap radio value in single quotes to account for options with spaces. --- templates/CRM/common/batchCopy.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/CRM/common/batchCopy.tpl b/templates/CRM/common/batchCopy.tpl index ebcca6c73a3a..a1b120161991 100644 --- a/templates/CRM/common/batchCopy.tpl +++ b/templates/CRM/common/batchCopy.tpl @@ -37,7 +37,7 @@ // wysiwyg editor, advanced multi-select ( to do ) if ( elementType == 'radio' ) { firstElementValue = elementId.filter(':checked').eq(0).val(); - elementId.filter("[value=" + firstElementValue + "]").prop("checked",true).change(); + elementId.filter("[value='" + firstElementValue + "']").prop("checked",true).change(); } else if ( elementType == 'checkbox' ) { // handle checkbox