From 77e44464aa8bcd5904fd50f17813c8dddad6eb2a Mon Sep 17 00:00:00 2001 From: JediKev <kevin@enhancesoft.com> Date: Tue, 28 Aug 2018 15:29:23 -0500 Subject: [PATCH] issue: Default Help Topic Issue Summary MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This addresses issue 4473 where users creating a ticket with the Help Topic preselected shows a validation error for the Issue Summary field. This is due to the new `getFormName()` function that creates new field form names based on the user’s/agent’s session. When the Help Topic is preselected, `_form` is not set for each field so the hashed name of the fields before ticket submit is different than after ticket submit. --- include/client/open.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/client/open.inc.php b/include/client/open.inc.php index 4011d1403..9900e2fe2 100644 --- a/include/client/open.inc.php +++ b/include/client/open.inc.php @@ -26,7 +26,7 @@ if ($info['topicId'] && ($topic=Topic::lookup($info['topicId']))) { $F = $F->instanciate(); $F->isValidForClient(); } - $forms[] = $F; + $forms[] = $F->getForm(); } } -- GitLab