phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: tts newticket.php,1.31.2.2,1.31.2.3 viewticket_d


From: Miles Lott <address@hidden>
Subject: [Phpgroupware-cvs] CVS: tts newticket.php,1.31.2.2,1.31.2.3 viewticket_details.php,1.42.2.4,1.42.2.5
Date: Fri, 17 May 2002 08:59:20 -0400

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

Modified Files:
      Tag: Version-0_9_14-branch
        newticket.php viewticket_details.php 
Log Message:
GNU Bug#375, formatting



Index: newticket.php
===================================================================
RCS file: /cvsroot/phpgroupware/tts/newticket.php,v
retrieving revision 1.31.2.2
retrieving revision 1.31.2.3
diff -C2 -r1.31.2.2 -r1.31.2.3
*** newticket.php       25 Jan 2002 22:00:52 -0000      1.31.2.2
--- newticket.php       17 May 2002 12:59:17 -0000      1.31.2.3
***************
*** 14,18 ****
  
        $submit = $HTTP_POST_VARS['submit'];
!       if ($submit || $cancel)
        {
                $GLOBALS['phpgw_info']['flags'] = array(
--- 14,19 ----
  
        $submit = $HTTP_POST_VARS['submit'];
!       $cancel = $HTTP_POST_VARS['cancel'];
!       if($submit || $cancel)
        {
                $GLOBALS['phpgw_info']['flags'] = array(
***************
*** 29,42 ****
        include('../header.inc.php');
  
!         $GLOBALS['phpgw']->config->read_repository();
  
!       if ($cancel)
        {
!               $phpgw->redirect($phpgw->link('/tts/index.php'));
        }
  
!       if ($submit)
        {
!               $phpgw->db->query("insert into phpgw_tts_tickets 
(ticket_group,ticket_priority,ticket_owner,"
                        . 
"ticket_assignedto,ticket_subject,ticket_category,ticket_billable_hours,"
                        . "ticket_billable_rate,ticket_status,ticket_details) 
values ('"
--- 30,43 ----
        include('../header.inc.php');
  
!       $GLOBALS['phpgw']->config->read_repository();
  
!       if($cancel)
        {
!               
$GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/tts/index.php'));
        }
  
!       if($submit)
        {
!               $GLOBALS['phpgw']->db->query("insert into phpgw_tts_tickets 
(ticket_group,ticket_priority,ticket_owner,"
                        . 
"ticket_assignedto,ticket_subject,ticket_category,ticket_billable_hours,"
                        . "ticket_billable_rate,ticket_status,ticket_details) 
values ('"
***************
*** 51,69 ****
                        . addslashes($ticket['details']) . 
"')",__LINE__,__FILE__);
  
!               $ticket_id = 
$phpgw->db->get_last_insert_id('phpgw_tts_tickets','ticket_id');
  
                $historylog = createobject('phpgwapi.historylog','tts');
                $historylog->add('O',$ticket_id,' ','');
  
!               if ($GLOBALS['phpgw']->config->config_data['mailnotification'])
! 
                {
                        mail_ticket($ticket_id);
                }
  
!               
$phpgw->redirect($phpgw->link('/tts/viewticket_details.php','&ticket_id=' . 
$ticket_id));
        }
  
- 
        $account_selected  = array();
        $entry_selected    = array();
--- 52,68 ----
                        . addslashes($ticket['details']) . 
"')",__LINE__,__FILE__);
  
!               $ticket_id = 
$GLOBALS['phpgw']->db->get_last_insert_id('phpgw_tts_tickets','ticket_id');
  
                $historylog = createobject('phpgwapi.historylog','tts');
                $historylog->add('O',$ticket_id,' ','');
  
!               if($GLOBALS['phpgw']->config->config_data['mailnotification'])
                {
                        mail_ticket($ticket_id);
                }
  
!               
$GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link('/tts/viewticket_details.php','&ticket_id='
 . $ticket_id));
        }
  
        $account_selected  = array();
        $entry_selected    = array();
***************
*** 71,90 ****
        $priority_comment  = array();
  
!       if (! $submit)
        {
                $GLOBALS['phpgw']->preferences->read_repository();
!               if 
($GLOBALS['phpgw_info']['user']['preferences']['tts']['groupdefault'])
                {
!                       
$entry_selected[$GLOBALS['phpgw_info']['user']['preferences']['tts']['groupdefault']]='
 selected';
                }
  
!               if 
($GLOBALS['phpgw_info']['user']['preferences']['tts']['assigntodefault'])
                {
!                       
$account_selected[$GLOBALS['phpgw_info']['user']['preferences']['tts']['assigntodefault']]='
 selected';
                }
  
!               if 
($GLOBALS['phpgw_info']['user']['preferences']['tts']['prioritydefault'])
                {
!                       
$priority_selected[$GLOBALS['phpgw_info']['user']['preferences']['tts']['prioritydefault']]='
 selected';
                }
  
--- 70,89 ----
        $priority_comment  = array();
  
!       if(!$submit)
        {
                $GLOBALS['phpgw']->preferences->read_repository();
!               
if($GLOBALS['phpgw_info']['user']['preferences']['tts']['groupdefault'])
                {
!                       
$entry_selected[$GLOBALS['phpgw_info']['user']['preferences']['tts']['groupdefault']]
 = ' selected';
                }
  
!               
if($GLOBALS['phpgw_info']['user']['preferences']['tts']['assigntodefault'])
                {
!                       
$account_selected[$GLOBALS['phpgw_info']['user']['preferences']['tts']['assigntodefault']]
 = ' selected';
                }
  
!               
if($GLOBALS['phpgw_info']['user']['preferences']['tts']['prioritydefault'])
                {
!                       
$priority_selected[$GLOBALS['phpgw_info']['user']['preferences']['tts']['prioritydefault']]
 = ' selected';
                }
  
***************
*** 92,96 ****
                        'newticket'   => 'newticket.tpl'
                ));
!                 
$GLOBALS['phpgw']->template->set_block('newticket','options_select');
                $GLOBALS['phpgw']->template->set_block('newticket','form');
  
--- 91,95 ----
                        'newticket'   => 'newticket.tpl'
                ));
!               
$GLOBALS['phpgw']->template->set_block('newticket','options_select');
                $GLOBALS['phpgw']->template->set_block('newticket','form');
  
***************
*** 127,140 ****
                unset($s);
                $groups = CreateObject('phpgwapi.accounts');
!                 $group_list=Array();
!                 
$group_list=$GLOBALS['phpgw']->accounts->membership($GLOBALS['phpgw_info']['user']['account_id']);
  
!               while (list($key,$entry) = each($group_list))
                {
!                         $GLOBALS['phpgw']->template->set_var('optionname', 
$entry['account_name']);
!                         $GLOBALS['phpgw']->template->set_var('optionvalue', 
$entry['account_id']);
!                         
$GLOBALS['phpgw']->template->set_var('optionselected', $tag);
!                         
$GLOBALS['phpgw']->template->parse('options_group','options_select',true);
! 
                }
  
--- 126,138 ----
                unset($s);
                $groups = CreateObject('phpgwapi.accounts');
!               $group_list = array();
!               $group_list = 
$GLOBALS['phpgw']->accounts->membership($GLOBALS['phpgw_info']['user']['account_id']);
  
!               while(list($key,$entry) = each($group_list))
                {
!                       $GLOBALS['phpgw']->template->set_var('optionname', 
$entry['account_name']);
!                       $GLOBALS['phpgw']->template->set_var('optionvalue', 
$entry['account_id']);
!                       $GLOBALS['phpgw']->template->set_var('optionselected', 
$tag);
!                       
$GLOBALS['phpgw']->template->parse('options_group','options_select',true);
                }
  
***************
*** 146,152 ****
                $accounts->account_id = $group_id;
                $account_list = $accounts->get_list('accounts');
!               while (list($key,$entry) = each($account_list))
                {
!                       $s .= '<option value="' . $entry['account_id'] . '" ' . 
$entry_selected[$entry['account_lid']]
                                . '>' . $entry['account_lid'] . '</option>';
                }
--- 144,150 ----
                $accounts->account_id = $group_id;
                $account_list = $accounts->get_list('accounts');
!               while(list($key,$entry) = each($account_list))
                {
!                       $s .= '<option value="' . $entry['account_id'] . '" ' . 
$account_selected[$entry['account_lid']]
                                . '>' . $entry['account_lid'] . '</option>';
                }
***************
*** 158,165 ****
                // Choose the correct priority to display
                $prority_selected[$ticket['priority']] = ' selected';
!               $priority_comment[1]=' - '.lang('Lowest');
!               $priority_comment[5]=' - '.lang('Medium');
!               $priority_comment[10]=' - '.lang('Highest');
!               for ($i=1; $i<=10; $i++)
                {
                        $priority_select .= '<option value="' . $i . '">' . $i 
. $priority_comment[$i] . '</option>';
--- 156,163 ----
                // Choose the correct priority to display
                $prority_selected[$ticket['priority']] = ' selected';
!               $priority_comment[1]  = ' - '.lang('Lowest');
!               $priority_comment[5]  = ' - '.lang('Medium');
!               $priority_comment[10] = ' - '.lang('Highest');
!               for($i=1; $i<=10; $i++)
                {
                        $priority_select .= '<option value="' . $i . '">' . $i 
. $priority_comment[$i] . '</option>';
***************
*** 170,174 ****
                $GLOBALS['phpgw']->template->set_var('tts_new_lstcategory','');
                $GLOBALS['phpgw']->template->set_var('tts_new_lstassignto','');
!       
                $GLOBALS['phpgw']->template->pfp('out','form');
                $GLOBALS['phpgw']->common->phpgw_footer();
--- 168,172 ----
                $GLOBALS['phpgw']->template->set_var('tts_new_lstcategory','');
                $GLOBALS['phpgw']->template->set_var('tts_new_lstassignto','');
! 
                $GLOBALS['phpgw']->template->pfp('out','form');
                $GLOBALS['phpgw']->common->phpgw_footer();
***************
*** 176,180 ****
        else
        {
- 
        }
! ?>
\ No newline at end of file
--- 174,177 ----
        else
        {
        }
! ?>

Index: viewticket_details.php
===================================================================
RCS file: /cvsroot/phpgroupware/tts/viewticket_details.php,v
retrieving revision 1.42.2.4
retrieving revision 1.42.2.5
diff -C2 -r1.42.2.4 -r1.42.2.5
*** viewticket_details.php      12 Apr 2002 15:07:47 -0000      1.42.2.4
--- viewticket_details.php      17 May 2002 12:59:17 -0000      1.42.2.5
***************
*** 21,25 ****
        $submit = $HTTP_POST_VARS['submit'];
  
!       if ($submit)
        {
                $GLOBALS['phpgw_info']['flags']['noheader'] = True;
--- 21,25 ----
        $submit = $HTTP_POST_VARS['submit'];
  
!       if($submit)
        {
                $GLOBALS['phpgw_info']['flags']['noheader'] = True;
***************
*** 31,35 ****
        $GLOBALS['phpgw']->config->read_repository();
  
- 
        $GLOBALS['phpgw']->historylog = 
createobject('phpgwapi.historylog','tts');
        $GLOBALS['phpgw']->historylog->types = array(
--- 31,34 ----
***************
*** 46,57 ****
        );
  
!       if (! $submit)
        {
                // Have they viewed this ticket before ?
                $GLOBALS['phpgw']->db->query("select count(*) from 
phpgw_tts_views where view_id='$ticket_id' "
!                               . "and view_account_id='" . 
$GLOBALS['phpgw_info']['user']['account_id'] . "'",__LINE__,__FILE__);
                $GLOBALS['phpgw']->db->next_record();
  
!               if (! $GLOBALS['phpgw']->db->f(0))
                {
                        $GLOBALS['phpgw']->db->query("insert into 
phpgw_tts_views values ('$ticket_id','"
--- 45,56 ----
        );
  
!       if(!$submit)
        {
                // Have they viewed this ticket before ?
                $GLOBALS['phpgw']->db->query("select count(*) from 
phpgw_tts_views where view_id='$ticket_id' "
!                       . "and view_account_id='" . 
$GLOBALS['phpgw_info']['user']['account_id'] . "'",__LINE__,__FILE__);
                $GLOBALS['phpgw']->db->next_record();
  
!               if(!$GLOBALS['phpgw']->db->f(0))
                {
                        $GLOBALS['phpgw']->db->query("insert into 
phpgw_tts_views values ('$ticket_id','"
***************
*** 82,86 ****
  
                $messages .= 
$GLOBALS['phpgw']->session->appsession('messages','tts');
!               if ($messages)
                {
                        
$GLOBALS['phpgw']->template->set_var('messages',$messages);
--- 81,85 ----
  
                $messages .= 
$GLOBALS['phpgw']->session->appsession('messages','tts');
!               if($messages)
                {
                        
$GLOBALS['phpgw']->template->set_var('messages',$messages);
***************
*** 88,92 ****
                }
  
!               if ($GLOBALS['phpgw']->db->f('ticket_status') == 'C')
                {
                        $GLOBALS['phpgw']->template->set_var('t_status','FIX 
ME! time closed ' . __LINE__); // 
$GLOBALS['phpgw']->common->show_date($GLOBALS['phpgw']->db->f('t_timestamp_closed')));
--- 87,91 ----
                }
  
!               if($GLOBALS['phpgw']->db->f('ticket_status') == 'C')
                {
                        $GLOBALS['phpgw']->template->set_var('t_status','FIX 
ME! time closed ' . __LINE__); // 
$GLOBALS['phpgw']->common->show_date($GLOBALS['phpgw']->db->f('t_timestamp_closed')));
***************
*** 103,107 ****
                $priority_comment[10] = ' - '.lang('Highest'); 
  
!               for ($i=1; $i<=10; $i++)
                {
                        $GLOBALS['phpgw']->template->set_var('optionname', 
$i.$priority_comment[$i]);
--- 102,106 ----
                $priority_comment[10] = ' - '.lang('Highest'); 
  
!               for($i=1; $i<=10; $i++)
                {
                        $GLOBALS['phpgw']->template->set_var('optionname', 
$i.$priority_comment[$i]);
***************
*** 118,125 ****
                $GLOBALS['phpgw']->template->set_var('optionselected','');
                
$GLOBALS['phpgw']->template->parse('options_assignedto','options_select',true);
!               while (list($key,$entry) = each($account_list))
                {
                        $tag = '';
!                       if ($entry['account_id'] == $ticket['assignedto'])
                        {
                                $tag = 'selected';
--- 117,124 ----
                $GLOBALS['phpgw']->template->set_var('optionselected','');
                
$GLOBALS['phpgw']->template->parse('options_assignedto','options_select',true);
!               while(list($key,$entry) = each($account_list))
                {
                        $tag = '';
!                       if($entry['account_id'] == $ticket['assignedto'])
                        {
                                $tag = 'selected';
***************
*** 134,145 ****
                $history_array = 
$GLOBALS['phpgw']->historylog->return_array(array(),array('X','O'),'','',$ticket_id);
  
!               while (is_array($history_array) && list(,$value) = 
each($history_array))
                {
!                       if ($value['status'] == 'O')
                        {
                                $ticket['opened'] = 
$GLOBALS['phpgw']->common->show_date($value['datetime'] - ((60*60) * 
$GLOBALS['phpgw_info']['user']['preferences']['common']['tz_offset']));
                        }
  
!                       if ($value['status'] == 'X')
                        {
                                $ticket['closed'] = 
$GLOBALS['phpgw']->common->show_date($value['datetime'] - ((60*60) * 
$GLOBALS['phpgw_info']['user']['preferences']['common']['tz_offset']));
--- 133,144 ----
                $history_array = 
$GLOBALS['phpgw']->historylog->return_array(array(),array('X','O'),'','',$ticket_id);
  
!               while(is_array($history_array) && list(,$value) = 
each($history_array))
                {
!                       if($value['status'] == 'O')
                        {
                                $ticket['opened'] = 
$GLOBALS['phpgw']->common->show_date($value['datetime'] - ((60*60) * 
$GLOBALS['phpgw_info']['user']['preferences']['common']['tz_offset']));
                        }
  
!                       if($value['status'] == 'X')
                        {
                                $ticket['closed'] = 
$GLOBALS['phpgw']->common->show_date($value['datetime'] - ((60*60) * 
$GLOBALS['phpgw_info']['user']['preferences']['common']['tz_offset']));
***************
*** 152,159 ****
                $group_list = 
$GLOBALS['phpgw']->accounts->membership($GLOBALS['phpgw_info']['user']['account_id']);
  
!               while (list($key,$entry) = each($group_list))
                {
                        $tag = '';
!                       if ($entry['account_id'] == $ticket['group'])
                        {
                                $tag = 'selected';
--- 151,158 ----
                $group_list = 
$GLOBALS['phpgw']->accounts->membership($GLOBALS['phpgw_info']['user']['account_id']);
  
!               while(list($key,$entry) = each($group_list))
                {
                        $tag = '';
!                       if($entry['account_id'] == $ticket['group'])
                        {
                                $tag = 'selected';
***************
*** 178,182 ****
                \**************************************************************/
                $history_array = 
$GLOBALS['phpgw']->historylog->return_array(array(),array('C'),'','',$ticket_id);
!               while (is_array($history_array) && list(,$value) = 
each($history_array))
                {
                        
$GLOBALS['phpgw']->template->set_var('lang_date',lang('Date'));
--- 177,181 ----
                \**************************************************************/
                $history_array = 
$GLOBALS['phpgw']->historylog->return_array(array(),array('C'),'','',$ticket_id);
!               while(is_array($history_array) && list(,$value) = 
each($history_array))
                {
                        
$GLOBALS['phpgw']->template->set_var('lang_date',lang('Date'));
***************
*** 190,194 ****
                }
  
!               if (! count($history_array))
                {
                        
$GLOBALS['phpgw']->template->set_var('lang_no_additional_notes',lang('No 
additional notes'));
--- 189,193 ----
                }
  
!               if(!count($history_array))
                {
                        
$GLOBALS['phpgw']->template->set_var('lang_no_additional_notes',lang('No 
additional notes'));
***************
*** 206,210 ****
  
                $history_array = 
$GLOBALS['phpgw']->historylog->return_array(array('C'),array(),'','',$ticket_id);
!               while (is_array($history_array) && list(,$value) = 
each($history_array))
                {
                        
$GLOBALS['phpgw']->nextmatchs->template_alternate_row_color($GLOBALS['phpgw']->template);
--- 205,209 ----
  
                $history_array = 
$GLOBALS['phpgw']->historylog->return_array(array('C'),array(),'','',$ticket_id);
!               while(is_array($history_array) && list(,$value) = 
each($history_array))
                {
                        
$GLOBALS['phpgw']->nextmatchs->template_alternate_row_color($GLOBALS['phpgw']->template);
***************
*** 213,217 ****
                        
$GLOBALS['phpgw']->template->set_var('value_user',$value['owner']);
  
!                       switch ($value['status'])
                        {
                                case 'R': $type = lang('Re-opened'); break;
--- 212,216 ----
                        
$GLOBALS['phpgw']->template->set_var('value_user',$value['owner']);
  
!                       switch($value['status'])
                        {
                                case 'R': $type = lang('Re-opened'); break;
***************
*** 231,237 ****
                        unset($type);
  
!                       if ($value['status'] == 'A')
                        {
!                               if (! $value['new_value'])
                                {
                                        
$GLOBALS['phpgw']->template->set_var('value_new_value',lang('None'));
--- 230,236 ----
                        unset($type);
  
!                       if($value['status'] == 'A')
                        {
!                               if(!$value['new_value'])
                                {
                                        
$GLOBALS['phpgw']->template->set_var('value_new_value',lang('None'));
***************
*** 242,246 ****
                                }
  
!                               if (! $value['old_value'])
                                {
                                        
$GLOBALS['phpgw']->template->set_var('value_old_value',lang('None'));
--- 241,245 ----
                                }
  
!                               if(!$value['old_value'])
                                {
                                        
$GLOBALS['phpgw']->template->set_var('value_old_value',lang('None'));
***************
*** 251,260 ****
                                }
                        }
!                       else if ($value['status'] == 'T')
                        {
                                
$GLOBALS['phpgw']->template->set_var('value_new_value',$GLOBALS['phpgw']->categories->id2name($value['new_value']));
                                
$GLOBALS['phpgw']->template->set_var('value_old_value',$GLOBALS['phpgw']->categories->id2name($value['old_value']));
                        }
!                       else if ($value['status'] == 'G')
                        {
                                $s = 
$GLOBALS['phpgw']->accounts->id2name($value['new_value']);
--- 250,259 ----
                                }
                        }
!                       elseif($value['status'] == 'T')
                        {
                                
$GLOBALS['phpgw']->template->set_var('value_new_value',$GLOBALS['phpgw']->categories->id2name($value['new_value']));
                                
$GLOBALS['phpgw']->template->set_var('value_old_value',$GLOBALS['phpgw']->categories->id2name($value['old_value']));
                        }
!                       elseif($value['status'] == 'G')
                        {
                                $s = 
$GLOBALS['phpgw']->accounts->id2name($value['new_value']);
***************
*** 266,270 ****
                                
$GLOBALS['phpgw']->template->set_var('value_old_value',$s);
                        }
!                       else if ($value['status'] != 'O' && $value['new_value'])
                        {
                                
$GLOBALS['phpgw']->template->set_var('value_new_value',$value['new_value']);
--- 265,269 ----
                                
$GLOBALS['phpgw']->template->set_var('value_old_value',$s);
                        }
!                       elseif($value['status'] != 'O' && $value['new_value'])
                        {
                                
$GLOBALS['phpgw']->template->set_var('value_new_value',$value['new_value']);
***************
*** 280,284 ****
                }
  
!               if (! count($history_array))
                {
                        
$GLOBALS['phpgw']->template->set_var('lang_no_history',lang('No history for 
this record'));
--- 279,283 ----
                }
  
!               if(!count($history_array))
                {
                        
$GLOBALS['phpgw']->template->set_var('lang_no_history',lang('No history for 
this record'));
***************
*** 323,327 ****
  
                
$GLOBALS['phpgw']->template->set_var('lang_assignedto',lang('Assigned to'));
!               if ($ticket['assignedto'])
                {
                        $assignedto = 
$GLOBALS['phpgw']->accounts->id2name($ticket['assignedto']);
--- 322,326 ----
  
                
$GLOBALS['phpgw']->template->set_var('lang_assignedto',lang('Assigned to'));
!               if($ticket['assignedto'])
                {
                        $assignedto = 
$GLOBALS['phpgw']->accounts->id2name($ticket['assignedto']);
***************
*** 382,389 ****
                */
  
!               if ($old_status != $ticket['status'])
                {
                        //only allow assigned-to or admin members to close 
tickets
!                       if (($GLOBALS['phpgw_info']['user']['account_id'] == 
$oldassigned) ||
                                
($GLOBALS['phpgw']->acl->get_specific_rights('Admins','phpgw_group')))
                        {
--- 381,388 ----
                */
  
!               if($old_status != $ticket['status'])
                {
                        //only allow assigned-to or admin members to close 
tickets
!                       if(($GLOBALS['phpgw_info']['user']['account_id'] == 
$oldassigned) ||
                                
($GLOBALS['phpgw']->acl->get_specific_rights('Admins','phpgw_group')))
                        {
***************
*** 401,405 ****
                }
  
!               if ($old_group != $ticket['group'])
                {
                        $fields_updated = True;
--- 400,404 ----
                }
  
!               if($old_group != $ticket['group'])
                {
                        $fields_updated = True;
***************
*** 409,413 ****
                }
  
!               if ($oldassigned != $ticket['assignedto'])
                {
                        $fields_updated = True;
--- 408,412 ----
                }
  
!               if($oldassigned != $ticket['assignedto'])
                {
                        $fields_updated = True;
***************
*** 417,421 ****
                }
  
!               if ($oldpriority != $ticket['priority'])
                {
                        $fields_updated = True;
--- 416,420 ----
                }
  
!               if($oldpriority != $ticket['priority'])
                {
                        $fields_updated = True;
***************
*** 425,429 ****
                }
  
!               if ($oldcategory != $ticket['category'])
                {
                        $fields_updated = True;
--- 424,428 ----
                }
  
!               if($oldcategory != $ticket['category'])
                {
                        $fields_updated = True;
***************
*** 433,437 ****
                }
  
!               if ($old_billable_hours != $ticket['billable_hours'])
                {
                        $fields_updated = True;
--- 432,436 ----
                }
  
!               if($old_billable_hours != $ticket['billable_hours'])
                {
                        $fields_updated = True;
***************
*** 441,445 ****
                }
  
!               if ($old_billable_rate != $ticket['billable_rate'])
                {
                        $fields_updated = True;
--- 440,444 ----
                }
  
!               if($old_billable_rate != $ticket['billable_rate'])
                {
                        $fields_updated = True;
***************
*** 449,453 ****
                }
  
!               if ($ticket['note'])
                {
                        $fields_updated = True;
--- 448,452 ----
                }
  
!               if($ticket['note'])
                {
                        $fields_updated = True;
***************
*** 456,460 ****
                        // Do this before we go into mail_ticket()
                        $GLOBALS['phpgw']->db->transaction_commit();
- 
                }
                else
--- 455,458 ----
***************
*** 464,473 ****
                }
  
!               if ($fields_updated)
                {
                        
$GLOBALS['phpgw']->session->appsession('messages','tts',lang('Ticket has been 
updated'));
  
!                       if 
($GLOBALS['phpgw']->config->config_data['mailnotification'])
! 
                        {
                                mail_ticket($ticket_id);
--- 462,470 ----
                }
  
!               if($fields_updated)
                {
                        
$GLOBALS['phpgw']->session->appsession('messages','tts',lang('Ticket has been 
updated'));
  
!                       
if($GLOBALS['phpgw']->config->config_data['mailnotification'])
                        {
                                mail_ticket($ticket_id);




reply via email to

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