Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

[resolved] Change the assignment to "Not Assigned" when transfering

Hi,

I want to ask if it's possible, in the last version (1.9.12) change the assignment of a ticket already assigned, when someone change dept.

For example: if the ticket is assigned to me, and I changes the dept, the assignment needs to disappear, like if no one never assigned it.

I've already seen https://github.com/osTicket/osTicket-1.8/issues/1100 but I don't find the correct line to put that code.

Comments

  • Have to admit that I looked at the pull request and the code too, but couldn't find the correct line to put that code or the line where to insert an additional update query to remove the ticket assignment :(

    Maybe forum moderator @ntozier has better eyes ;)
  • Ok, I'll wait @ntozier for this.
  • I think hes suggesting to change /include/class.ticket.php
    line 764
    from

    .' WHERE ticket_id='.db_input($this->getId());

    to
    .', staff_id=0, isanswered=0 WHERE ticket_id='.db_input($this->getId());
  • I've done it in an easier way:

    class.ticket.php - line #1652

    after:

    $this->logEvent('transferred');

    add:

    $this->setStaffId(0);

    You can close this thread.
This discussion has been closed.