projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e440e4
)
Fix undefined index
author
Coleman Watts
<coleman@civicrm.org>
Thu, 6 Mar 2014 14:47:23 +0000
(09:47 -0500)
committer
Coleman Watts
<coleman@civicrm.org>
Thu, 6 Mar 2014 14:47:23 +0000
(09:47 -0500)
CRM/Contact/Form/Relationship.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Contact/Form/Relationship.php
b/CRM/Contact/Form/Relationship.php
index 31d725ec25c619eee74da8f3c62bb7d2bdafc158..6bbfd4575e1f9679d9e918ccdc4f39878987ded7 100644
(file)
--- 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']);