phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/inc/class.bodrawing.inc.php, 1.1.1.2


From: nomail
Subject: [Phpgroupware-cvs] property/inc/class.bodrawing.inc.php, 1.1.1.2
Date: Sun, 30 May 2004 21:10:31 +0200

Update of /property/inc
Modified Files:
        Branch: 
          class.bodrawing.inc.php

date: 2004/05/30 19:10:31;  author: sigurdne;  state: Exp;  lines: +5 -4

Log Message:
no message
=====================================================================
Index: property/inc/class.bodrawing.inc.php
diff -u property/inc/class.bodrawing.inc.php:1.1.1.1 
property/inc/class.bodrawing.inc.php:1.1.1.2
--- property/inc/class.bodrawing.inc.php:1.1.1.1        Fri Apr 23 13:13:56 2004
+++ property/inc/class.bodrawing.inc.php        Sun May 30 19:10:31 2004
@@ -39,7 +39,8 @@
                        $this->so                       = 
CreateObject($this->currentapp.'.sodrawing');
                        $this->bocommon         = 
CreateObject($this->currentapp.'.bocommon');
                        $this->historylog       = 
CreateObject($this->currentapp.'.historylog','drawing');
-                       $this->contacts         = 
CreateObject('phpgwapi.contacts');
+                       $this->contacts         = 
CreateObject($this->currentapp.'.soactor');
+                       $this->contacts->role='vendor';
                        $this->vfs                      = 
CreateObject('phpgwapi.vfs');
                        $this->rootdir          = $this->vfs->basedir;
                        $this->fakebase         = $this->vfs->fakebase;
@@ -290,9 +291,9 @@
                        $drawing                                                
= $this->so->read_single($drawing_id);
                        $dateformat                                             
= $GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat'];
                        $drawing['drawing_date']                = 
$GLOBALS['phpgw']->common->show_date($drawing['drawing_date'],$dateformat);
-                       $vendor                                                 
= 
$this->contacts->read_single_entry($drawing['vendor_id'],array('org_name'=>'org_name','email'=>'email'));
-                       $drawing['vendor_name']                 = 
$vendor[0]['org_name'];
-                       $drawing['vendor_email']                = 
$vendor[0]['email'];
+                       $vendor                                                 
= $this->contacts->read_single(array('actor_id'=>$drawing['vendor_id']));
+                       $drawing['vendor_name']                 = 
$vendor['org_name'];
+                       $drawing['vendor_email']                = 
$vendor['email'];
 
                        if($drawing['location_code'])
                        {




reply via email to

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