fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12542]


From: Nelson Guerra
Subject: [Fmsystem-commits] [12542]
Date: Tue, 06 Jan 2015 23:28:35 +0000

Revision: 12542
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12542
Author:   nelson224
Date:     2015-01-06 23:28:34 +0000 (Tue, 06 Jan 2015)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind/property/inc/class.uigeneric.inc.php

Modified: branches/dev-syncromind/property/inc/class.uigeneric.inc.php
===================================================================
--- branches/dev-syncromind/property/inc/class.uigeneric.inc.php        
2015-01-06 15:31:27 UTC (rev 12541)
+++ branches/dev-syncromind/property/inc/class.uigeneric.inc.php        
2015-01-06 23:28:34 UTC (rev 12542)
@@ -141,6 +141,22 @@
                                }
                        }
 
+                       $insert_record_attributes = 
$GLOBALS['phpgw']->session->appsession("insert_record_values{$this->acl_location}",$this->location_info['acl_app']);
+
+                       if(is_array($insert_record_attributes))
+                       {
+                               foreach ($insert_record_attributes as 
$attribute)
+                               {
+                                       foreach ($values_attribute as &$attr)
+                                       {
+                                               if($attr['name'] ==  $attribute)
+                                               {
+                                                       $attr['value'] = 
phpgw::get_var($attribute, 'string', 'POST');
+                                               }
+                                       }
+                               }
+                       }
+                               
                        /*
                        * Extra data from custom fields
                        */
@@ -159,8 +175,8 @@
                                                
$this->receipt['error'][]=array('msg'=>lang('Please enter integer for attribute 
%1', $attribute['input_text']));                                                
                                        }
                                }
-                               
-                               $data = 
$this->custom->preserve_attribute_values($data,$values_attribute);
+                               $data['attributes'] = $values_attribute;
+                               //$data = 
$this->custom->preserve_attribute_values($data,$values_attribute);
                        }
 
                        return $data;




reply via email to

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