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

oops: Fix crash creating ticket with multiple forms

parent 98fef45c
Branches
Tags
No related merge requests found
...@@ -3123,7 +3123,7 @@ implements RestrictedAccess, Threadable, TemplateVariable { ...@@ -3123,7 +3123,7 @@ implements RestrictedAccess, Threadable, TemplateVariable {
if ($vars['topicId']) { if ($vars['topicId']) {
if ($topic=Topic::lookup($vars['topicId'])) { if ($topic=Topic::lookup($vars['topicId'])) {
foreach ($topic_forms as $topic_form) { foreach ($topic_forms as $topic_form) {
$TF = $topic_form->getForm()->getForm($vars); $TF = $topic_form->getForm($vars);
if (!$TF->isValid($field_filter('topic'))) if (!$TF->isValid($field_filter('topic')))
$errors = array_merge($errors, $TF->errors()); $errors = array_merge($errors, $TF->errors());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment