From 05be7f02c09cbcaf44ee708dbdf72c9fa5bf8f1b Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Mon, 6 Jan 2014 11:03:35 -0600 Subject: [PATCH] Ensure form for fields created during install Fixes #374 --- include/class.dynamic_forms.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/class.dynamic_forms.php b/include/class.dynamic_forms.php index 52e310935..d15617cd3 100644 --- a/include/class.dynamic_forms.php +++ b/include/class.dynamic_forms.php @@ -130,6 +130,7 @@ class DynamicForm extends VerySimpleModel { foreach ($ht['fields'] as $f) { $f = DynamicFormField::create($f); $f->form_id = $inst->id; + $f->setForm($inst); $f->save(); } } -- GitLab