Fix undefined index
authorColeman Watts <coleman@civicrm.org>
Thu, 6 Mar 2014 14:47:23 +0000 (09:47 -0500)
committerColeman Watts <coleman@civicrm.org>
Thu, 6 Mar 2014 14:47:23 +0000 (09:47 -0500)
CRM/Contact/Form/Relationship.php

index 31d725ec25c619eee74da8f3c62bb7d2bdafc158..6bbfd4575e1f9679d9e918ccdc4f39878987ded7 100644 (file)
@@ -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']);