From a7d5b60c11d802439d4a1198a3443c7ea6dd9a6c Mon Sep 17 00:00:00 2001 From: JediKev <kevin@enhancesoft.com> Date: Thu, 31 Jan 2019 15:06:16 -0600 Subject: [PATCH] issue: New Ticket Field Permissions This addresses an issue where creating a ticket as an agent and selecting a Help Topic does not show the Issue Summary or Issue Details fields. This is due to us passing 3 parameters instead of 1 as an array. This combines the params in one array and only passes the array as a param. --- include/ajax.forms.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/ajax.forms.php b/include/ajax.forms.php index c25570e09..fddaec16b 100644 --- a/include/ajax.forms.php +++ b/include/ajax.forms.php @@ -32,8 +32,9 @@ class DynamicFormsAjaxAPI extends AjaxController { if (!$form->hasAnyVisibleFields()) continue; ob_start(); - $form->getForm($_SESSION[':form-data'])->render(!$client, false, - array('mode' => 'create')); + $form->getForm($_SESSION[':form-data'])->render(array( + 'staff' => !$client, + 'mode' => 'create')); $html .= ob_get_clean(); ob_start(); print $form->getMedia(); -- GitLab