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

forms: Fix validation error display on web submit

Fixes osTicket/osTicket-1.8#203
parent de5b4b47
No related branches found
No related tags found
No related merge requests found
......@@ -180,13 +180,14 @@ class TicketForm extends DynamicForm {
static function getInstance() {
if (!isset(static::$instance))
static::$instance = static::getNewInstance();
self::getNewInstance();
return static::$instance;
}
static function getNewInstance() {
$o = static::objects();
return $o[0]->instanciate();
static::$instance = $o[0]->instanciate();
return static::$instance;
}
}
// Add fields from the standard ticket form to the ticket filterable fields
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment