Skip to content

Conversation

@colbyprior
Copy link

Hi,

I was having an issue where I wanted tickets to be assigned to the currently logged in user on correspond however whenever the owner was assigned they would then get un-assigned.

My problem was because the correspond triggered the scrip then an owner change was triggered afterwards because the Update.html page was always assigning owner to $Ticket->Owner instead of remaining unchanged.

If the value is set to '' then the owner is set to "Unchanged" however when it is set to $Ticket->Owner explicitly and it always takes precedence over the other options and always performs an owner update even when not warranted like in my case.

My thread on the forums is here. Thanks for any help.
https://forum.bestpractical.com/t/scrip-action-triggers-before-ownership-change/33422

@cbrandtbuffalo
Copy link
Member

Sorry for the late comment. Often the fix for this is to try running your scrip in batch rather than normal. That should make it run last, after other changes have happened. Assuming you have upgraded, are you still seeing this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants