phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] property/inc hook_settings.inc.php, 1.7 class.uitts.i


From: sigurdne
Subject: [Phpgroupware-cvs] property/inc hook_settings.inc.php, 1.7 class.uitts.inc.php, 1.12
Date: Fri, 8 Apr 2005 12:49:00 +0200

Update of property/inc

Modified Files:
     Branch: MAIN
            hook_settings.inc.php lines: +9 -1
            class.uitts.inc.php lines: +9 -1

Log Message:
no message

====================================================
Index: property/inc/hook_settings.inc.php
diff -u property/inc/hook_settings.inc.php:1.6 
property/inc/hook_settings.inc.php:1.7
--- property/inc/hook_settings.inc.php:1.6      Wed Mar  2 11:54:04 2005
+++ property/inc/hook_settings.inc.php  Fri Apr  8 10:49:20 2005
@@ -28,6 +28,14 @@
        );
        create_select_box('show new/updated tickets on main 
screen','mainscreen_show_new_updated',$yes_and_no,'Dont think this is working - 
yet');

+       $tts_status = array(
+               ''              => lang('Open'),
+               'closed'        => lang('Closed'),
+               'all'           => lang('All')
+       );
+
+       create_select_box('Default ticket status','tts_status',$tts_status,'The 
default status when entering the helpdesk');
+
        $acc = CreateObject('phpgwapi.accounts');
        $group_list = $acc->get_list('groups');
        while (list($key,$entry) = each($group_list))

====================================================
Index: property/inc/class.uitts.inc.php
diff -u property/inc/class.uitts.inc.php:1.11 
property/inc/class.uitts.inc.php:1.12
--- property/inc/class.uitts.inc.php:1.11       Tue Mar  1 15:04:27 2005
+++ property/inc/class.uitts.inc.php    Fri Apr  8 10:49:20 2005
@@ -185,6 +185,8 @@
                        $second_display = 
get_var('second_display',array('POST','GET'));

                        $default_category = 
$GLOBALS['phpgw_info']['user']['preferences'][$this->currentapp]['default_district'];
+                       $default_status = 
$GLOBALS['phpgw_info']['user']['preferences'][$this->currentapp]['tts_status'];
+

                        if ($default_category && !$second_display && 
!$this->district_id)
                        {
@@ -192,6 +194,12 @@
                                $this->district_id              = 
$default_category;
                        }

+                       if ($default_status && !$second_display)
+                       {
+                               $this->bo->filter       = $default_status;
+                               $this->filter   = $default_status;
+                       }
+
                        $bgcolor['1']   = '#dadada';
                        $bgcolor['2']   = '#dad0d0';
                        $bgcolor['3']   = '#dacaca';






reply via email to

[Prev in Thread] Current Thread [Next in Thread]