I've changed Tickets module
modules/Premium/Projects/Tickets/Tickets_0.php
public function body() {
$this->rb = $this->init_module('Utils/RecordBrowser','premium_tickets','premium_tickets');
[....]
$this->tray = $this->init_module('Custom/Tray');
$this->tray->set_filters($this->rb, false);
$this->display_module($this->rb);
}
modules/Premium/Projects/Tickets/TicketsCommon_0.php
public static function tray()
{
$slots = array();
$statuses = Utils_CommonDataCommon::get_array('Premium_Ticket_Status', true);
foreach ($statuses as $status => $status_label) {
$slots[] = array(
'__name__' => $status_label,
'__filters__' => array('status' => $status)
);
}
return array(
'premium_tickets' => array(
'__title__' => _M('Tickets'),
'__slots__' => $slots,
'__weight__' => 2,
)
);
}
Just to get the idea how it works. For tickets it could be like that or some smaller set of trays like: New, In progress (Open, In progress), Awaiting feedback. Closed are not necessary.
Regards,
Adam