phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/class.uirequest.php, 1.1.1.10


From: nomail
Subject: [Phpgroupware-cvs] property/class.uirequest.php, 1.1.1.10
Date: Sun, 23 May 2004 08:40:00 -0000

Update of /property
Modified Files:
        Branch: 
          class.uirequest.php

date: 2004/04/30 17:35:58;  author: sigurdne;  state: Exp;  lines: +10 -9

Log Message:
no message
=====================================================================
Index: property/class.uirequest.php
diff -u property/class.uirequest.php:1.1.1.9 
property/class.uirequest.php:1.1.1.10
--- property/class.uirequest.php:1.1.1.9        Fri Apr 30 09:52:25 2004
+++ property/class.uirequest.php        Fri Apr 30 17:35:58 2004
@@ -332,7 +332,7 @@
                                'links'                                         
        => $links,
                                'allow_allrows'                                 
=> false,
                                'start_record'                                  
=> $this->start,
-                               'record_limit'                                  
=> 15, //$GLOBALS['phpgw_info']['user']['preferences']['common']['maxmatchs'],
+                               'record_limit'                                  
=> 15, //$GLOBALS['phpgw_data']['user']['preferences']['common']['maxmatchs'],
                                'num_records'                                   
=> count($request_list),
                                'all_records'                                   
=> $this->bo->total_records,
                                'link_url'                                      
        => $this->bocommon->link('/index.php',$link_data),
@@ -558,8 +558,8 @@
 
                                        if ($values['notify'])
                                        {
-                                               
$coordinator_name=$GLOBALS['phpgw_info']['user']['fullname'];
-                                               
$coordinator_email=$GLOBALS['phpgw_info']['user']['preferences'][$this->currentapp]['email'];
+                                               
$coordinator_name=$GLOBALS['phpgw_data']['user']['fullname'];
+                                               
$coordinator_email=$GLOBALS['phpgw_data']['prefs'][$this->currentapp . 
'.email'];
                                                $headers = "Return-Path: <". 
$coordinator_email .">\r\n";
                                                $headers .= "From: " . 
$coordinator_name . "<" . $coordinator_email .">\r\n";
                                                $headers .= "Bcc: " . 
$coordinator_name . "<" . $coordinator_email .">\r\n";
@@ -669,14 +669,15 @@
                                $values['coordinator']=$this->account;
                        }
 
-                       
$supervisor_id=$GLOBALS['phpgw_info']['user']['preferences'][$this->currentapp]['approval_from'];
+                       
$supervisor_id=$GLOBALS['phpgw_data']['prefs'][$this->currentapp . 
'.approval_from'];
 
                        $notify = 
$this->config->config_data['workorder_approval'];
 
                        if ($supervisor_id && ($notify=='yes'))
                        {
-                               $prefs = 
$this->bocommon->create_preferences($this->currentapp,$supervisor_id);
-                               $supervisor_email = $prefs['email'];
+//                             $prefs = 
$this->bocommon->create_preferences($this->currentapp,$supervisor_id);
+//                             $supervisor_email = $prefs['email'];
+                               $supervisor_email = 
$GLOBALS['phpgw']->prefs->get('email',$supervisor_id,$this->currentapp);
                        }
 
 
@@ -854,7 +855,7 @@
                                'lang_notify_statustext'                => 
lang('Check this to notify your supervisor by email'),
                                'value_notify_mail_address'             => 
$supervisor_email,
 
-                               'currency'                                      
        => $GLOBALS['phpgw_info']['user']['preferences']['common']['currency']
+                               'currency'                                      
        => $GLOBALS['phpgw_data']['user']['preferences']['common']['currency']
                        );
 
                        $appname                                                
= lang('request');
@@ -952,7 +953,7 @@
                                'id'                    => $id
                        );
 
-                       $dateformat = 
strtolower($GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat']);
+                       $dateformat = 
strtolower($GLOBALS['phpgw_data']['user']['preferences']['common']['dateformat']);
                        $sep = '/';
                        $dlarr[strpos($dateformat,'y')] = 'yyyy';
                        $dlarr[strpos($dateformat,'m')] = 'MM';
@@ -1090,7 +1091,7 @@
                                'edit_action'                                   
        => 
$this->bocommon->link('/index.php','sid=cookie&op='.$this->currentapp.'.uirequest.edit&id='
 . $id),
                                'lang_edit_statustext'                          
=> lang('Edit this entry request'),
                                'lang_edit'                                     
                => lang('Edit'),
-                               'currency'                                      
                => 
$GLOBALS['phpgw_info']['user']['preferences']['common']['currency']
+                               'currency'                                      
                => 
$GLOBALS['phpgw_data']['user']['preferences']['common']['currency']
                        );
 
                        $appname                                                
= lang('request');




reply via email to

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