phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/inc/class.bodocument.inc.php, 1.1.1.3


From: nomail
Subject: [Phpgroupware-cvs] property/inc/class.bodocument.inc.php, 1.1.1.3
Date: Mon, 31 May 2004 22:39:11 +0200

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

date: 2004/05/31 20:39:11;  author: sigurdne;  state: Exp;  lines: +12 -2

Log Message:
no message
=====================================================================
Index: property/inc/class.bodocument.inc.php
diff -u property/inc/class.bodocument.inc.php:1.1.1.2 
property/inc/class.bodocument.inc.php:1.1.1.3
--- property/inc/class.bodocument.inc.php:1.1.1.2       Sun May 30 19:10:31 2004
+++ property/inc/class.bodocument.inc.php       Mon May 31 20:39:11 2004
@@ -295,8 +295,18 @@
                        $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(array('actor_id'=>$document['vendor_id']));
-                       $document['vendor_name']                = 
$vendor['org_name'];
-                       $document['vendor_email']               = 
$vendor['email'];
+
+                       if(is_array($vendor))
+                       {
+                               foreach($vendor['attributes'] as $attribute)
+                               {
+                                       if($attribute['name']=='org_name')
+                                       {
+                                               
$document['vendor_name']=$attribute['value'];
+                                               break;
+                                       }
+                               }
+                       }
 
                        if($document['location_code'])
                        {




reply via email to

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