phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: tts index.php,1.44,1.45


From: Mark A Peters <address@hidden>
Subject: [Phpgroupware-cvs] CVS: tts index.php,1.44,1.45
Date: Sun, 24 Mar 2002 11:53:26 -0500

Update of /cvsroot/phpgroupware/tts
In directory subversions:/tmp/cvs-serv30278/tts

Modified Files:
        index.php 
Log Message:
GNU Patch #187 - Fix for GNU Bug#100597.

Index: index.php
===================================================================
RCS file: /cvsroot/phpgroupware/tts/index.php,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -r1.44 -r1.45
*** index.php   18 Feb 2002 13:43:46 -0000      1.44
--- index.php   24 Mar 2002 16:53:23 -0000      1.45
***************
*** 215,238 ****
                        
$GLOBALS['phpgw']->template->set_var('tts_t_user',$GLOBALS['phpgw']->accounts->id2name($GLOBALS['phpgw']->db->f('ticket_owner')));
  
!                       $history_values = 
$GLOBALS['phpgw']->historylog->return_array(array(),array('O'),'','',$GLOBALS['phpgw']->db->f('ticket_id'));
                        
$GLOBALS['phpgw']->template->set_var('tts_t_timestampopened',$GLOBALS['phpgw']->common->show_date($history_values[0]['datetime']));
  
!                       if ($GLOBALS['phpgw']->db->f('ticket_status') == 'C')
                        {
! //                            
$timestampclosed=$GLOBALS['phpgw']->common->show_date($GLOBALS['phpgw']->db->f('t_timestamp_closed'));
!                               
$GLOBALS['phpgw']->template->set_var('tts_t_timestampclosed','Fix me!');
                                
$GLOBALS['phpgw']->template->parse('tts_col_status','tts_col_ifviewall',False);
                        }
                        elseif ($filter != 'viewopen')
                        {
!                               if 
($GLOBALS['phpgw']->db->f('ticket_assignedto') != -1)
!                               {
!                                       $assigned_to = lang('Not assigned');
!                               }
!                               else
!                               {
!                                       $assigned_to = 
$phpgw->accounts->id2name($GLOBALS['phpgw']->db->f('ticket_assignedto'));
!                               }
!                               
$GLOBALS['phpgw']->template->set_var('tts_t_timestampclosed',$assigned_to);
                                
$GLOBALS['phpgw']->template->parse('tts_col_status','tts_col_ifviewall',False);
                        }
--- 215,239 ----
                        
$GLOBALS['phpgw']->template->set_var('tts_t_user',$GLOBALS['phpgw']->accounts->id2name($GLOBALS['phpgw']->db->f('ticket_owner')));
  
!                       $history_values = 
$GLOBALS['phpgw']->historylog->return_array(array(),array('O'),'history_timestamp','ASC',$GLOBALS['phpgw']->db->f('ticket_id'));
                        
$GLOBALS['phpgw']->template->set_var('tts_t_timestampopened',$GLOBALS['phpgw']->common->show_date($history_values[0]['datetime']));
  
!                       if ($GLOBALS['phpgw']->db->f('ticket_status') == 'X')
                        {
!                               $history_values = 
$GLOBALS['phpgw']->historylog->return_array(array(),array('X'),'history_timestamp','DESC',$GLOBALS['phpgw']->db->f('ticket_id'));
!                               
$GLOBALS['phpgw']->template->set_var('tts_t_timestampclosed',$GLOBALS['phpgw']->common->show_date($history_values[0]['datetime']));
                                
$GLOBALS['phpgw']->template->parse('tts_col_status','tts_col_ifviewall',False);
                        }
                        elseif ($filter != 'viewopen')
                        {
! //                            if 
($GLOBALS['phpgw']->db->f('ticket_assignedto') != -1)
! //                            {
! //                                    $assigned_to = lang('Not assigned');
! //                            }
! //                            else
! //                            {
! //                                    $assigned_to = 
$GLOBALS['phpgw']->accounts->id2name($GLOBALS['phpgw']->db->f('ticket_assignedto'));
! //                            }
! //                            
$GLOBALS['phpgw']->template->set_var('tts_t_timestampclosed',$assigned_to);
!                               
$GLOBALS['phpgw']->template->set_var('tts_t_timestampclosed','Open');
                                
$GLOBALS['phpgw']->template->parse('tts_col_status','tts_col_ifviewall',False);
                        }




reply via email to

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