[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.3
From: |
nomail |
Subject: |
[Phpgroupware-cvs] property/inc/class.boworkorder.inc.php, 1.1.1.3 |
Date: |
Mon, 31 May 2004 22:39:14 +0200 |
Update of /property/inc
Modified Files:
Branch:
class.boworkorder.inc.php
date: 2004/05/31 20:39:14; author: sigurdne; state: Exp; lines: +15 -2
Log Message:
no message
=====================================================================
Index: property/inc/class.boworkorder.inc.php
diff -u property/inc/class.boworkorder.inc.php:1.1.1.2
property/inc/class.boworkorder.inc.php:1.1.1.3
--- property/inc/class.boworkorder.inc.php:1.1.1.2 Sun May 30 19:10:31 2004
+++ property/inc/class.boworkorder.inc.php Mon May 31 20:39:14 2004
@@ -331,8 +331,21 @@
$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(array('actor_id'=>(int)$workorder['vendor_id']));
- $workorder['vendor_name'] =
$vendor['org_name'];
- $workorder['vendor_email'] =
$vendor['email'];
+ if(is_array($vendor))
+ {
+ foreach($vendor['attributes'] as $attribute)
+ {
+ if($attribute['name']=='org_name')
+ {
+
$workorder['vendor_name']=$attribute['value'];
+ }
+ if($attribute['name']=='email')
+ {
+
$workorder['vendor_email']=$attribute['value'];
+ }
+ }
+ }
+
$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.3,
nomail <=