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:
a65f52b
)
Fix label default not being set on membership status form
author
eileen
<emcnaughton@wikimedia.org>
Thu, 13 Dec 2018 18:41:32 +0000
(07:41 +1300)
committer
eileen
<emcnaughton@wikimedia.org>
Thu, 13 Dec 2018 18:41:32 +0000
(07:41 +1300)
CRM/Core/Form/EntityFormTrait.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/Form/EntityFormTrait.php
b/CRM/Core/Form/EntityFormTrait.php
index 40914a25119c1b4c77ea74831de6b0ca4a2ce887..f3d0c6d99d0413404ef13e7f3745e533bc3ef96b 100644
(file)
--- a/
CRM/Core/Form/EntityFormTrait.php
+++ b/
CRM/Core/Form/EntityFormTrait.php
@@
-146,7
+146,7
@@
trait CRM_Core_Form_EntityFormTrait {
}
foreach ($this->entityFields as $fieldSpec) {
$value = CRM_Utils_Request::retrieveValue($fieldSpec['name'], $this->getValidationTypeForField($fieldSpec['name']));
- if ($value !== FALSE) {
+ if ($value !== FALSE
&& $value !== NULL
) {
$defaults[$fieldSpec['name']] = $value;
}
}