diff --git a/include/class.queue.php b/include/class.queue.php index 87f2850ef6405727798d026bef31eb6e48f758ba..a8ebafb3d3a12d05d327e0c78b76bf5676969f3d 100644 --- a/include/class.queue.php +++ b/include/class.queue.php @@ -2001,7 +2001,16 @@ extends VerySimpleModel { // These getters fetch data from the annotated overlay from the // queue_column table function getQueue() { - return $this->_queue ?: $this->queue; + if (!isset($this->_queue)) { + $queue = $this->queue; + + if (!$queue && ($queue_id = $this->queue_id)) + $queue = CustomQueue::lookup($queue_id); + + $this->_queue = $queue; + } + + return $this->_queue; } /** * If a column is inherited into a child queue and there are conditions