Skip to content
Snippets Groups Projects
Commit 0440111d authored by Jared Hancock's avatar Jared Hancock
Browse files

forms: Fix possible out of memory issue

parent afa96921
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
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