Skip to content
Snippets Groups Projects
Commit 1ed288f5 authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #3152 from protich/issue/add-missing-fields

bug: Add Missing Fields ORM crash
parents e0458d7e efb0452b
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