From 310017b18fc0857c22131eaae8a0b73bbe8cf1f8 Mon Sep 17 00:00:00 2001 From: JediKev <kevin@enhancesoft.com> Date: Mon, 6 Aug 2018 09:19:39 -0500 Subject: [PATCH] status: Allow Reopen This addresses an issue introduced with `510046c5` where tickets with no Help Topic can not be reopened. This is due to a check on `isReopenable()` where it returns `null` instead of `true` if there is no help topic; therefore returning false and not allowing the ticket to be reopened. --- include/class.ticket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class.ticket.php b/include/class.ticket.php index 75c818b40..c6b2124b4 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() { -- GitLab