Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: Template Variables in Ticket Filter #5283

Merged
merged 2 commits into from
Aug 6, 2020

Commits on Aug 6, 2020

  1. Issue: Template Variables in Ticket Filter

    This commit fixes an issue where you could not use template variables when using the 'Send an Email' filter action. All variables would just display as 'Array'.
    
    We needed to pass the Ticket object to FA_SendEmail::apply however, we were running the filters before the Ticket object was created. To fix this, we can add the Ticket object to vars and run the filterTicketData function again after the Ticket is created and only apply the send email filter action if the Ticket object is found.
    aydreeihn committed Aug 6, 2020
    Configuration menu
    Copy the full SHA
    8ef505d View commit details
    Browse the repository at this point in the history
  2. Post Create Filters

    This commit controls when we run certain types of filters. If we are sending out an email, we want those filter actions to run after the ticket is created in case template variables are used. All other types of filter actions can run before the ticket is created.
    aydreeihn committed Aug 6, 2020
    Configuration menu
    Copy the full SHA
    8a82d1e View commit details
    Browse the repository at this point in the history