Closed ccailly closed 9 months ago
After modifying my configuration to match the original issue
If I escalate a ticket with incoming
status, the incoming
status is retained.
But If I escalate a ticket with inprogess
status, the inprogess
status is retained.
for me it doesn't matter what the original status is, the configured status should always be applied
another point (to be fixed via this PR) The "do not change" option doesn't work (see my first comment)
Using escalation here does not retain "new" status
From timeline
action or from the actors form it's ok =)
!30921
Description
This PR addresses a bug in the plugin where tickets would automatically change to the status 'in progress' after an escalation task, even when the desired configuration was set to 'new'. The issue was due to the group assignment altering the status.
Changes
The fix involves a small change in the
ticket.form.php
file. A condition has been added to check if the last status of the ticket was 'incoming' and if the current status is 'incoming'. If both conditions are met, the_from_object
key is set to true in the group ticket additional data variable. This key indicates to the add method that the status should not be altered during the group assignment.