OptionGroupSpecification field inputs are being set to null (v 2.1.1)
Behaviour:
- Create an Option Group input, e.g. Prefix. -- "Use label as value" can be Yes or No, doesn't matter.
- Use this input to update the Contact.
Outcome:
- The contact's Prefix value from the Option Group is not updated after the form processor runs.
Behaviour:
-
The Runner's
processInputs()
method calls the following:$dataBag->setInputData($objInput, $inputType->normalizeValue($params[$input['name']]), $inputType);
-
The value doesn't pass the checks in
OptionGroupType::normalizeValue()
and returns null. -
This null value is passed along in the
$dataBag
, so the OptionGroup value is never updated to the expected value. -
Caused by Commit e97bd719 "Fixed minor issue around calculations"
Agileware Ref: CIVICRM-2277
Edited by agileware-iris