From 48739ceb82833ac70b42fb11e40cb069d40ca003 Mon Sep 17 00:00:00 2001 From: Kurund Jalmi Date: Mon, 27 May 2013 11:17:14 +0530 Subject: [PATCH] applied patch for CRM-12673 --- templates/CRM/Contact/Form/Relationship.tpl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/templates/CRM/Contact/Form/Relationship.tpl b/templates/CRM/Contact/Form/Relationship.tpl index 069bca5d83..d4da60783e 100644 --- a/templates/CRM/Contact/Form/Relationship.tpl +++ b/templates/CRM/Contact/Form/Relationship.tpl @@ -473,6 +473,14 @@ function checkSelected( ) { } function submitAjaxData() { + var total_checked = new Array(); + cj.each(contact_checked, function (index, value) { + if (typeof value !== "undefined") { + total_checked.push(value); + } + }); + contact_checked = total_checked; + cj('#store_contacts').val( contact_checked.toString() ); if ( useEmployer ) { cj('#store_employers').val( employer_checked.toString() ); -- 2.25.1