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

forms: Clearing answers cache should be null

The check in DynamicFormEntry::getAnswers() will use the cached _values
array if it is not set to null. Previously, the ::save() method would set it
to an empty array.
parent a8728583
No related branches found
No related tags found
No related merge requests found
...@@ -537,7 +537,7 @@ class DynamicFormEntry extends VerySimpleModel { ...@@ -537,7 +537,7 @@ class DynamicFormEntry extends VerySimpleModel {
if ($field->hasData() && !$field->isPresentationOnly()) if ($field->hasData() && !$field->isPresentationOnly())
$a->save(); $a->save();
} }
$this->_values = array(); $this->_values = null;
} }
function delete() { function delete() {
......
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