Skip to content

Commit

Permalink
Merge pull request #13288 from eileenmcnaughton/mem_form58
Browse files Browse the repository at this point in the history
dev/core#595 Fix label default not being set on membership status form
  • Loading branch information
eileenmcnaughton authored Dec 17, 2018
2 parents 1a73788 + e9c72e9 commit 1848828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Core/Form/EntityFormTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ protected function getEntityDefaults() {
}
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;
}
}
Expand Down

0 comments on commit 1848828

Please sign in to comment.