phpgroupware-cvs
[Top][All Lists]
Advanced

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

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


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

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

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

Log Message:
no message
=====================================================================
Index: property/inc/class.uiinvoice.inc.php
diff -u property/inc/class.uiinvoice.inc.php:1.1.1.2 
property/inc/class.uiinvoice.inc.php:1.1.1.3
--- property/inc/class.uiinvoice.inc.php:1.1.1.2        Sun May 30 19:10:31 2004
+++ property/inc/class.uiinvoice.inc.php        Mon May 31 20:39:12 2004
@@ -621,7 +621,17 @@
                                $contacts               = 
CreateObject($this->currentapp.'.soactor');
                                $contacts->role='vendor';
                                $vendor                 = 
$contacts->read_single(array('actor_id'=>(int)$vendor_id));
-                               $vendor_name    = $vendor['org_name'];
+                               if(is_array($vendor))
+                               {
+                                       foreach($vendor['attributes'] as 
$attribute)
+                                       {
+                                               
if($attribute['name']=='org_name')
+                                               {
+                                                       
$vendor_name=$attribute['value'];
+                                                       break;
+                                               }
+                                       }
+                               }
                        }
 
                        $links = $this->menu->links('consume');




reply via email to

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