diff --git a/include/class.ticket.php b/include/class.ticket.php index 75c818b405e287edaa6c68c4a4cb7836686c9b9f..c6b2124b45cfea9721aa84ca04a1ec246b2cb14c 100644 --- a/include/class.ticket.php +++ b/include/class.ticket.php @@ -221,7 +221,7 @@ implements RestrictedAccess, Threadable, Searchable { function isReopenable() { return ($this->getStatus()->isReopenable() && $this->getDept()->allowsReopen() - && ($this->getTopic() ? $this->getTopic()->allowsReopen() : null)); + && ($this->getTopic() ? $this->getTopic()->allowsReopen() : true)); } function isClosed() { diff --git a/scp/tickets.php b/scp/tickets.php index 82e9b07032bb34897244e6bd88691a8ef6dd5aab..4851b4169d257b259671e525d12b0917be428b46 100644 --- a/scp/tickets.php +++ b/scp/tickets.php @@ -93,7 +93,7 @@ if (!$ticket) { $queue_key = sprintf('::Q:%s', ObjectModel::OBJECT_TYPE_TICKET); $queue_id = $queue_id ?: @$_GET['queue'] ?: $_SESSION[$queue_key] - ?: $cfg->getDefaultTicketQueueId(); + ?: $thisstaff->getDefaultTicketQueueId() ?: $cfg->getDefaultTicketQueueId(); // Recover advanced search, if requested if (isset($_SESSION['advsearch'])