Skip to content
Snippets Groups Projects
Commit c6cd84f0 authored by JediKev's avatar JediKev
Browse files

queues: Row Conditions

This addresses an issue where row conditions are working in the preview but
not in the actual ticket queue. This updates the `getQueue()` function to
lookup the CustomQueue by `queue_id` if there is no CustomQueue object found
in the QueueColumn.
parent e601405e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment