diff --git a/include/class.dynamic_forms.php b/include/class.dynamic_forms.php index 6131a294b747e7328cfe3a1dcfd88cb7ae8a7673..bde36701dec0f1de84e6b3cf33ae9b6631a967b2 100644 --- a/include/class.dynamic_forms.php +++ b/include/class.dynamic_forms.php @@ -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;