[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [11500] property:tickets: relect new priorities
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [11500] property:tickets: relect new priorities |
Date: |
Thu, 28 Nov 2013 15:06:57 +0000 |
Revision: 11500
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11500
Author: sigurdne
Date: 2013-11-28 15:06:56 +0000 (Thu, 28 Nov 2013)
Log Message:
-----------
property:tickets: relect new priorities
Modified Paths:
--------------
trunk/property/inc/hook_settings.inc.php
Modified: trunk/property/inc/hook_settings.inc.php
===================================================================
--- trunk/property/inc/hook_settings.inc.php 2013-11-27 14:42:10 UTC (rev
11499)
+++ trunk/property/inc/hook_settings.inc.php 2013-11-28 15:06:56 UTC (rev
11500)
@@ -134,31 +134,18 @@
}
create_select_box('Default assign to
TTS','assigntodefault',$_accounts,'The default user to assign a ticket in
Helpdesk-submodule');
- // Choose the correct priority to display
- $config = CreateObject('phpgwapi.config','property');
- $config->read();
- $priority = array();
- $prioritylevels = isset($config->config_data['prioritylevels']) &&
$config->config_data['prioritylevels'] ? $config->config_data['prioritylevels']
: 3;
- $priority_comment[1] = ' - ' . lang('Highest');
- $priority_comment[$prioritylevels] = ' - ' . lang('Lowest');
- for ($i=1; $i<=$prioritylevels; $i++)
+ $priority_list_tts = execMethod('property.botts.get_priority_list');
+
+ if ($priority_list_tts)
{
- $priority[$i] = $i . isset($priority_comment[$i]) ?
$priority_comment[$i] : '';
+ foreach ( $priority_list_tts as $entry )
+ {
+ $_priority_tts[$entry['id']] = $entry['name'];
+ }
}
+ create_select_box('Default Priority
TTS','prioritydefault',$_priority_tts,'The default priority for tickets in the
Helpdesk-submodule');
- $degree = array();
- // Choose the correct degree to display
- $degree_comment[0]=' - '.lang('None');
- $degree_comment[1]=' - '.lang('Minor');
- $degree_comment[2]=' - '.lang('Medium');
- $degree_comment[3]=' - '.lang('Serious');
- for ($i=0; $i<=3; $i++)
- {
- $degree[$i] = $i . $degree_comment[$i];
- }
- create_select_box('Default Priority
TTS','prioritydefault',$priority,'The default priority for tickets in the
Helpdesk-submodule');
-
$cats = CreateObject('phpgwapi.categories', -1, 'property',
'.ticket');
$cat_data = $cats->formatted_xslt_list(array('globals' => true,
'link_data' =>array()));
@@ -181,6 +168,20 @@
'2' => 'No'
);
+
+ $degree = array();
+ // Choose the correct degree to display
+ $degree_comment[0]=' - '.lang('None');
+ $degree_comment[1]=' - '.lang('Minor');
+ $degree_comment[2]=' - '.lang('Medium');
+ $degree_comment[3]=' - '.lang('Serious');
+ for ($i=0; $i<=3; $i++)
+ {
+ $degree[$i] = $i . $degree_comment[$i];
+ }
+
+
+
create_select_box('Notify me by mail when ticket is assigned or
altered','tts_notify_me',$yes_and_no,'');
create_select_box('Send e-mail from
TTS','tts_user_mailnotification',$yes_and_no,'Send e-mail from TTS as default');
create_input_box('Refresh TTS every (seconds)','refreshinterval','The
intervall for Helpdesk refresh - cheking for new tickets');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [11500] property:tickets: relect new priorities,
Sigurd Nes <=