[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/inc/class.boworkorder.inc.php, 1.1.1.2
From: |
nomail |
Subject: |
[Phpgroupware-cvs] property/inc/class.boworkorder.inc.php, 1.1.1.2 |
Date: |
Sun, 30 May 2004 21:10:31 +0200 |
Update of /property/inc
Modified Files:
Branch:
class.boworkorder.inc.php
date: 2004/05/30 19:10:31; author: sigurdne; state: Exp; lines: +5 -4
Log Message:
no message
=====================================================================
Index: property/inc/class.boworkorder.inc.php
diff -u property/inc/class.boworkorder.inc.php:1.1.1.1
property/inc/class.boworkorder.inc.php:1.1.1.2
--- property/inc/class.boworkorder.inc.php:1.1.1.1 Fri Apr 23 13:13:57 2004
+++ property/inc/class.boworkorder.inc.php Sun May 30 19:10:31 2004
@@ -324,14 +324,15 @@
function read_single($workorder_id)
{
- $contacts =
CreateObject('phpgwapi.contacts');
+ $contacts =
CreateObject($this->currentapp.'.soactor');
+ $contacts->role='vendor';
$workorder
= $this->so->read_single($workorder_id);
$dateformat
= $GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat'];
$workorder['start_date'] =
$GLOBALS['phpgw']->common->show_date($workorder['start_date'],$dateformat);
$workorder['end_date'] =
$GLOBALS['phpgw']->common->show_date($workorder['end_date'],$dateformat);
- $vendor
=
$contacts->read_single_entry((int)$workorder['vendor_id'],array('org_name'=>'org_name','email'=>'email'));
- $workorder['vendor_name'] =
$vendor[0]['org_name'];
- $workorder['vendor_email'] =
$vendor[0]['email'];
+ $vendor
= $contacts->read_single(array('actor_id'=>(int)$workorder['vendor_id']));
+ $workorder['vendor_name'] =
$vendor['org_name'];
+ $workorder['vendor_email'] =
$vendor['email'];
$workorder['b_account_name'] =
$this->so->get_b_account_name($workorder['b_account_id']);
$config =
CreateObject('phpgwapi.config');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property/inc/class.boworkorder.inc.php, 1.1.1.2,
nomail <=