Guard against passing empty values to CRM_Core_DAO::getFieldValue()
authorAdam Wood <72983627+webmaster-cses-org-uk@users.noreply.github.com>
Sun, 7 Nov 2021 13:09:31 +0000 (13:09 +0000)
committerGitHub <noreply@github.com>
Sun, 7 Nov 2021 13:09:31 +0000 (13:09 +0000)
commitaf25c7a505438e70a991da9c0f7ea042de5720e9
treec80eaa5749577552b9cde6498e99fe6a3b33039a
parent98c65eb08b189d74d23e80ab9749431e6aaf7118
Guard against passing empty values to CRM_Core_DAO::getFieldValue()

This change removes a potential "getFieldValue failed" error that can be thrown if an empty scalar value occurs in a multiple-contact reference custom field.

See https://lab.civicrm.org/dev/core/-/issues/2939

Replaces https://github.com/eileenmcnaughton/civicrm-core/pull/13/commits which was opened against the wrong repo.
CRM/Core/BAO/CustomField.php