NEW : set ticket status to answered if the client has answered from the public interface
This commit is contained in:
parent
b55817f7be
commit
9a162100c0
@ -2667,7 +2667,10 @@ class Ticket extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Set status to "answered" if not set yet, but only if internal user and not private message
|
// Set status to "answered" if not set yet, but only if internal user and not private message
|
||||||
if ($object->status < 3 && !$user->socid && !$private) {
|
// Or set status to "answered" if the client has answered and if the ticket has started
|
||||||
|
if (($object->status < self::STATUS_IN_PROGRESS && !$user->socid && !$private) ||
|
||||||
|
($object->status > self::STATUS_IN_PROGRESS && $public_area)
|
||||||
|
) {
|
||||||
$object->setStatut(3);
|
$object->setStatut(3);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user