From 103e73fb296baa853b6f8c72b281fb17274963c0 Mon Sep 17 00:00:00 2001 From: Dave Jenkins Date: Mon, 13 Aug 2018 18:10:17 +0100 Subject: [PATCH] dev/core/issues/322 - fix JS error on contribution page, completing form on behalf of someone else, when profile includes checkbox field. --- js/AlternateContactSelector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/AlternateContactSelector.js b/js/AlternateContactSelector.js index 6098b24291..bb73d17e0d 100644 --- a/js/AlternateContactSelector.js +++ b/js/AlternateContactSelector.js @@ -9,7 +9,7 @@ CRM.$(function($) { $.each(result.values, function (id, value) { $.each(value, function (fieldname, fieldvalue) { $('#' + fieldname).val(fieldvalue).change(); - $("[name=" + fieldname + "]").val([fieldvalue]); + $('[name="' + fieldname + '"]').val([fieldvalue]); if ($.isArray(fieldvalue)) { $.each(fieldvalue, function (index, val) { $("#" + fieldname + "_" + val).prop('checked', true); -- 2.25.1