Skip to content
Snippets Groups Projects
Commit efb0452b authored by Peter Rotich's avatar Peter Rotich
Browse files

bug: Add Missing Fields

Set _value in DynamicFormEntryAnswer even when value is empty.
parent 784184b6
No related branches found
No related tags found
No related merge requests found
......@@ -1347,11 +1347,13 @@ class DynamicFormEntryAnswer extends VerySimpleModel {
}
function getValue() {
if (!isset($this->_value) && isset($this->value)) {
if (!isset($this->_value)) {
//XXX: We're settting the value here to avoid infinite loop
$this->_value = false;
$this->_value = $this->getField()->to_php(
$this->get('value'), $this->get('value_id'));
if (isset($this->value))
$this->_value = $this->getField()->to_php(
$this->get('value'), $this->get('value_id'));
}
return $this->_value;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment