Skip to content
Snippets Groups Projects
Commit ca7cc8d3 authored by Jared Hancock's avatar Jared Hancock Committed by Peter Rotich
Browse files

queue: Add upgrade path from v1.10

And, fix bad width on new open queue
And, fix bad criteria on install
parent 843f4d6c
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@
columns:
- column_id: 1
sort: 1
width: 75
width: 100
heading: Ticket
- column_id: 10
sort: 2
......@@ -96,7 +96,7 @@
flags: 0x0b
root: T
sort: 1
config: '[["status__state","includes",{"open":"Open"}],["answered","nset",null]]'
config: '[["isanswered","nset",null]]'
columns:
- column_id: 1
sort: 1
......@@ -128,7 +128,7 @@
flags: 0x0b
root: T
sort: 2
config: '[["assignee","unassigned",null]]'
config: '[["assignee","!assigned",null]]'
columns:
- column_id: 1
sort: 1
......
98ad7d550c26ac44340350912296e673
934b8db8f97d6859d013b6219957724f
/**
* @version v1.11
* @signature 00000000000000000000000000000000
* @signature 934b8db8f97d6859d013b6219957724f
* @title Custom Queues, Columns
*
* Add custom queues, custom columns, and quick filter capabilities to the
......@@ -41,5 +41,5 @@ CREATE TABLE `%TABLE_PREFIX%queue_columns` (
-- Finished with patch
UPDATE `%TABLE_PREFIX%config`
SET `value` = '00000000000000000000000000000000'
SET `value` = '934b8db8f97d6859d013b6219957724f'
WHERE `key` = 'schema_signature' AND `namespace` = 'core';
<?php
class QueueCreator extends MigrationTask {
var $description = "Load customziable ticket queues";
function run($time) {
$i18n = new Internationalization('en_US');
$columns = $i18n->getTemplate('queue_column.yaml')->getData();
foreach ($columns as $C) {
QueueColumn::__create($C);
}
$queues = $i18n->getTemplate('queue.yaml')->getData();
foreach ($queues as $C) {
CustomQueue::__create($C);
}
// Set default queue to 'open'
global $cfg;
$cfg->set('default_ticket_queue', 1);
}
}
return 'QueueCreator';
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment