From 42e0f3c0318c8ab322efdae2e17e635f8f0a6921 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Fri, 8 Nov 2013 03:15:52 +0000 Subject: [PATCH] Fix regression in user form validation Validation errors in user form were not displayed on the interface --- include/class.ticket.php | 2 +- include/client/open.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class.ticket.php b/include/class.ticket.php index 9001ee9a8..c652f8f3f 100644 --- a/include/class.ticket.php +++ b/include/class.ticket.php @@ -1889,7 +1889,7 @@ class Ticket { // Identify the user creating the ticket and unpack user information // fields into local scope for filtering and banning purposes - $user_form = UserForm::getInstance(); + $user_form = UserForm::getUserForm(); $user_info = $user_form->getClean(); if ($user_form->isValid()) $vars += $user_info; diff --git a/include/client/open.inc.php b/include/client/open.inc.php index b9ba42e24..c5ecb42c6 100644 --- a/include/client/open.inc.php +++ b/include/client/open.inc.php @@ -40,7 +40,7 @@ $info=($_POST && $errors)?Format::htmlchars($_POST):$info; </tr> <?php if (!$thisclient) { - UserForm::getInstance()->render(false, 'Your Information'); + UserForm::getUserForm()->render(false, 'Your Information'); } else { ?> <tr><td colspan="2"><hr /></td></tr> -- GitLab