diff --git a/include/class.dynamic_forms.php b/include/class.dynamic_forms.php index 3aeba1442f6528315f669d2e6457afdfb1010fc7..01979c75815e811ec3dccb55c2507df11d0c71d7 100644 --- a/include/class.dynamic_forms.php +++ b/include/class.dynamic_forms.php @@ -1030,9 +1030,13 @@ class DynamicFormEntryAnswer extends VerySimpleModel { } function getValue() { - if (!$this->_value && isset($this->value)) + if (!isset($this->_value) && 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')); + } + return $this->_value; }