Skip to content
Snippets Groups Projects
Commit f281cf49 authored by Peter Rotich's avatar Peter Rotich
Browse files

Add ticket and user fields to supported vars.

parent 72860964
No related branches found
No related tags found
No related merge requests found
......@@ -25,8 +25,15 @@ class TicketApiController extends ApiController {
$supported[] = $field->get('name');
}
if(($form = TicketForm::lookup()->instanciate()))
foreach ($form->getDynamicFields() as $field)
# Ticket form fields
# TODO: Support userId for existing user
if(($form = TicketForm::getInstance()))
foreach ($form->getFields() as $field)
$supported[] = $field->get('name');
# User form fields
if(($form = UserForm::getInstance()))
foreach ($form->getFields() as $field)
$supported[] = $field->get('name');
if(!strcasecmp($format, 'email')) {
......
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