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

oops: Fix issue with dynamic field lookups

parent 33ee0060
No related branches found
No related tags found
No related merge requests found
...@@ -56,7 +56,7 @@ class DynamicForm extends VerySimpleModel { ...@@ -56,7 +56,7 @@ class DynamicForm extends VerySimpleModel {
} }
function getDynamicFields() { function getDynamicFields() {
if (!isset($this->_dfields) && isset($this->id)) { if (!$this->_dfields && isset($this->id)) {
$this->_dfields = DynamicFormField::objects() $this->_dfields = DynamicFormField::objects()
->filter(array('form_id'=>$this->id)) ->filter(array('form_id'=>$this->id))
->all(); ->all();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment