From 87db3e6bb2e0885bea71cf3e170efdef053b34eb Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 6 Mar 2014 09:47:23 -0500 Subject: [PATCH] Fix undefined index --- CRM/Contact/Form/Relationship.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Contact/Form/Relationship.php b/CRM/Contact/Form/Relationship.php index 31d725ec25..6bbfd4575e 100644 --- a/CRM/Contact/Form/Relationship.php +++ b/CRM/Contact/Form/Relationship.php @@ -419,6 +419,7 @@ class CRM_Contact_Form_Relationship extends CRM_Core_Form { // Boolean fields (checkboxes) are nonexistant when submitted if unchecked - cast them to boolean // FIXME: Dear Quickform, this sucks. + $params['is_current_employer'] = !empty($params['is_current_employer']); $params['is_active'] = !empty($params['is_active']); $params['is_permission_a_b'] = !empty($params['is_permission_a_b']); $params['is_permission_b_a'] = !empty($params['is_permission_b_a']); -- 2.25.1