Skip to content
Snippets Groups Projects
Commit 06cce0a8 authored by Jared Hancock's avatar Jared Hancock
Browse files

Add new statuses and flags on upgrade to 1.9.4

parent 87d64707
No related branches found
No related tags found
No related merge requests found
......@@ -157,7 +157,7 @@ if($ticket->isOverdue())
<table border="0" cellspacing="" cellpadding="4" width="100%">
<tr>
<th width="100"><?php echo __('Status');?>:</th>
<td><?php echo mb_convert_case(__($ticket->getStatus()), MB_CASE_TITLE); ?></td>
<td><?php echo $ticket->getStatus(); ?></td>
</tr>
<tr>
<th><?php echo __('Priority');?>:</th>
......
......@@ -8,7 +8,9 @@ class SequenceLoader extends MigrationTask {
var $description = "Loading initial data for sequences";
function run($max_time) {
$i18n = new Internationalization('en_US');
global $cfg;
$i18n = new Internationalization($cfg->get('system_language', 'en_US'));
$sequences = $i18n->getTemplate('sequence.yaml')->getData();
foreach ($sequences as $s) {
Sequence::create($s)->save();
......@@ -16,6 +18,18 @@ class SequenceLoader extends MigrationTask {
db_query('UPDATE '.SEQUENCE_TABLE.' SET `next`= '
.'(SELECT MAX(ticket_id)+1 FROM '.TICKET_TABLE.') '
.'WHERE `id`=1');
require_once(INCLUDE_DIR . 'class.list.php');
$lists = $i18n->getTemplate('list.yaml')->getData();
foreach ($lists as $l) {
DynamicList::create($l);
}
$statuses = $i18n->getTemplate('ticket_status.yaml')->getData();
foreach ($statuses as $s) {
TicketStatus::__create($s);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment