Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.0] Fix settings with falsey values not getting returned #435

Merged
merged 1 commit into from
Nov 16, 2017

Conversation

mikemand
Copy link
Contributor

No description provided.

Signed-off-by: Micheal Mand <micheal@kmdwebdesigns.com>
}
} else {
return $setting->plainValue === null ? $defaultFromConfig : $setting->plainValue;
return trim($setting->plainValue) === '' ? $defaultFromConfig : $setting->plainValue;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't completely sure about this change here... It all depends on if the ConvertEmptyStringsToNull middleware is being used or not.

@nWidart nWidart merged commit 21e551b into AsgardCms:3.0 Nov 16, 2017
@nWidart
Copy link
Member

nWidart commented Nov 16, 2017

👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants