diff --git a/include/class.list.php b/include/class.list.php index 98be809500197f76c0265086236ee4b665ad4adb..f6bc85ea95b0063f44359f7c44374e795ee63131 100644 --- a/include/class.list.php +++ b/include/class.list.php @@ -1014,12 +1014,8 @@ class TicketStatus extends VerySimpleModel implements CustomListItem { return parent::delete(); } - function toString() { - return $this->getValue(); - } - function __toString() { - return $this->toString(); + return $this->getName(); } static function create($ht) { diff --git a/include/class.ticket.php b/include/class.ticket.php index 6e0a07583b0758a88f5bfb1a77d7a7b5f47a6e0a..e4ccfd0769ece4d7c5d84b6d9705a9f25b9e1f6a 100644 --- a/include/class.ticket.php +++ b/include/class.ticket.php @@ -1154,8 +1154,8 @@ class Ticket { } } - // Reopen if closed. - if($this->isClosed()) $this->reopen(); + // Reopen if NOT open + if(!$this->isOpen()) $this->reopen(); /********** double check auto-response ************/ if (!($user = $message->getUser()))