From 48ab1797dee3cac0fb6425768008097605d746d4 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Tue, 18 Aug 2015 15:02:23 -0500 Subject: [PATCH] orgs: Data for new forms is not required --- include/class.organization.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class.organization.php b/include/class.organization.php index 0c08a4f30..e870667b1 100644 --- a/include/class.organization.php +++ b/include/class.organization.php @@ -257,7 +257,7 @@ implements TemplateVariable { } } - function addForm($form, $sort=1, $data) { + function addForm($form, $sort=1, $data=null) { $entry = $form->instanciate($sort, $data); $entry->set('object_type', 'O'); $entry->set('object_id', $this->getId()); -- GitLab