[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/inc/class.bodocument.inc.php, 1.1.1.2
From: |
nomail |
Subject: |
[Phpgroupware-cvs] property/inc/class.bodocument.inc.php, 1.1.1.2 |
Date: |
Sun, 30 May 2004 21:10:31 +0200 |
Update of /property/inc
Modified Files:
Branch:
class.bodocument.inc.php
date: 2004/05/30 19:10:31; author: sigurdne; state: Exp; lines: +5 -4
Log Message:
no message
=====================================================================
Index: property/inc/class.bodocument.inc.php
diff -u property/inc/class.bodocument.inc.php:1.1.1.1
property/inc/class.bodocument.inc.php:1.1.1.2
--- property/inc/class.bodocument.inc.php:1.1.1.1 Fri Apr 23 13:13:56 2004
+++ property/inc/class.bodocument.inc.php Sun May 30 19:10:31 2004
@@ -40,7 +40,8 @@
$this->bocommon =
CreateObject($this->currentapp.'.bocommon');
$this->solocation =
CreateObject($this->currentapp.'.solocation');
$this->historylog =
CreateObject($this->currentapp.'.historylog','document');
- $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;
@@ -293,9 +294,9 @@
$document
= $this->so->read_single($document_id);
$dateformat
= $GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat'];
$document['document_date'] =
$GLOBALS['phpgw']->common->show_date($document['document_date'],$dateformat);
- $vendor
=
$this->contacts->read_single_entry($document['vendor_id'],array('org_name'=>'org_name','email'=>'email'));
- $document['vendor_name'] =
$vendor[0]['org_name'];
- $document['vendor_email'] =
$vendor[0]['email'];
+ $vendor
= $this->contacts->read_single(array('actor_id'=>$document['vendor_id']));
+ $document['vendor_name'] =
$vendor['org_name'];
+ $document['vendor_email'] =
$vendor['email'];
if($document['location_code'])
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property/inc/class.bodocument.inc.php, 1.1.1.2,
nomail <=