fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [6989] property: collect attribute values at uigeneri


From: Sigurd Nes
Subject: [Fmsystem-commits] [6989] property: collect attribute values at uigeneric::edit()
Date: Wed, 16 Feb 2011 08:29:49 +0000

Revision: 6989
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6989
Author:   sigurdne
Date:     2011-02-16 08:29:49 +0000 (Wed, 16 Feb 2011)
Log Message:
-----------
property: collect attribute values at uigeneric::edit()

Modified Paths:
--------------
    trunk/property/inc/class.uigeneric.inc.php

Modified: trunk/property/inc/class.uigeneric.inc.php
===================================================================
--- trunk/property/inc/class.uigeneric.inc.php  2011-02-15 18:11:13 UTC (rev 
6988)
+++ trunk/property/inc/class.uigeneric.inc.php  2011-02-16 08:29:49 UTC (rev 
6989)
@@ -583,15 +583,22 @@
 
                        if (is_array($values))
                        {
-                               $insert_record_values = 
$GLOBALS['phpgw']->session->appsession("insert_record_values{$this->acl_location}",$this->location_info['acl_app']);
+                               $insert_record_attributes = 
$GLOBALS['phpgw']->session->appsession("insert_record_values{$this->acl_location}",$this->location_info['acl_app']);
 
-                               if(is_array($insert_record_values))
+                               if(is_array($insert_record_attributes))
                                {
-                                       foreach($insert_record_values as $field)
+                                       foreach ($insert_record_attributes as 
$attribute)
                                        {
-//                                             $values['extra'][$field] =      
phpgw::get_var($field);
+                                               foreach ($values_attribute as 
&$attr)
+                                               {
+                                                       if($attr['name'] ==  
$attribute)
+                                                       {
+                                                               $attr['value'] 
= phpgw::get_var($attribute, 'string', 'POST');
+                                                       }
+                                               }
                                        }
                                }
+
 //                             $values = 
$this->bocommon->collect_locationdata($values,$insert_record_values);
                                if ((isset($values['save']) && $values['save']) 
|| (isset($values['apply']) && $values['apply']))
                                {




reply via email to

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