dev/core#1588 Fix regression where empty string is passed to SettingsBag
authoreileen <emcnaughton@wikimedia.org>
Fri, 14 Feb 2020 01:50:18 +0000 (14:50 +1300)
committereileen <emcnaughton@wikimedia.org>
Fri, 14 Feb 2020 01:50:18 +0000 (14:50 +1300)
commit62c41ada4eab37d56aeb806980f9a5d77178c423
treed8582e9c3f8c9f4cb4ea097d7a4c7d8e1e9455b9
parentfb3f69878193d485236c8627a5c69d8e95917187
dev/core#1588 Fix regression where empty string is passed to SettingsBag

We have a scenario where the checkbox is presented but is optional. This is then in 'params' which is passed through to
PropertyBag. The value is equal to '' so it fails to validate when we use it to set the value on the PropertyBag.

I don't think we lose anything meaningful by not setting an empty string and it avoids this error so we should
merge & release as a regression fix IMHO. If we want to revist then we should do that in master

https://lab.civicrm.org/dev/core/issues/1588
CRM/Contribute/Form/Contribution/Confirm.php
Civi/Payment/PropertyBag.php