fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [6813] property: mine submitted tickets


From: Sigurd Nes
Subject: [Fmsystem-commits] [6813] property: mine submitted tickets
Date: Thu, 20 Jan 2011 15:26:39 +0000

Revision: 6813
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6813
Author:   sigurdne
Date:     2011-01-20 15:26:39 +0000 (Thu, 20 Jan 2011)
Log Message:
-----------
property: mine submitted tickets

Modified Paths:
--------------
    trunk/property/inc/class.sotts.inc.php
    trunk/property/inc/class.uitts.inc.php

Modified: trunk/property/inc/class.sotts.inc.php
===================================================================
--- trunk/property/inc/class.sotts.inc.php      2011-01-20 15:17:33 UTC (rev 
6812)
+++ trunk/property/inc/class.sotts.inc.php      2011-01-20 15:26:39 UTC (rev 
6813)
@@ -312,6 +312,12 @@
                                $filtermethod .= ' OR (assignedto IS NULL AND 
group_id IN (' . implode(',',array_keys($membership)) . ')))'; 
                        }
 
+                       if ($user_id < 0)
+                       {
+                               $filtermethod .= " {$where} 
fm_tts_tickets.user_id=" . (int)abs($user_id);
+                               $where = 'AND';
+                       }
+
                        if ($owner_id > 0)
                        {
                                $filtermethod .= " $where 
fm_tts_tickets.user_id=" . (int)$owner_id;

Modified: trunk/property/inc/class.uitts.inc.php
===================================================================
--- trunk/property/inc/class.uitts.inc.php      2011-01-20 15:17:33 UTC (rev 
6812)
+++ trunk/property/inc/class.uitts.inc.php      2011-01-20 15:26:39 UTC (rev 
6813)
@@ -513,7 +513,8 @@
                                        array_unshift 
($values_combo_box[1],$default_value);
 
                                        $values_combo_box[3]  = 
$this->bocommon->get_user_list_right2('filter',PHPGW_ACL_EDIT,$this->user_id,$this->acl_location);
-                                       array_unshift 
($values_combo_box[3],array('id'=>$GLOBALS['phpgw_info']['user']['account_id'],'name'=>lang('mine
 tickets')));
+                                       array_unshift 
($values_combo_box[3],array('id'=>$GLOBALS['phpgw_info']['user']['account_id'],'name'=>lang('mine
 assigned tickets')));
+                                       array_unshift 
($values_combo_box[3],array('id'=> (-1 * 
$GLOBALS['phpgw_info']['user']['account_id']),'name'=>lang('mine submitted 
tickets')));
                                        $default_value = 
array('id'=>'','name'=>lang('no user'));
                                        array_unshift 
($values_combo_box[3],$default_value);
 




reply via email to

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