fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [15650]


From: nelson . guerra
Subject: [Fmsystem-commits] [15650]
Date: Sat, 10 Sep 2016 01:17:17 +0000 (UTC)

Revision: 15650
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15650
Author:   nelson224
Date:     2016-09-10 01:17:17 +0000 (Sat, 10 Sep 2016)
Log Message:
-----------


Modified Paths:
--------------
    
branches/dev-syncromind-2/property/inc/import/class.import_update_components.inc.php

Modified: 
branches/dev-syncromind-2/property/inc/import/class.import_update_components.inc.php
===================================================================
--- 
branches/dev-syncromind-2/property/inc/import/class.import_update_components.inc.php
        2016-09-10 01:16:55 UTC (rev 15649)
+++ 
branches/dev-syncromind-2/property/inc/import/class.import_update_components.inc.php
        2016-09-10 01:17:17 UTC (rev 15650)
@@ -241,7 +241,7 @@
                                
                                if (!$id)
                                {
-                                       $receipt['error'][] = array('msg' => 
lang('Unable to add field').' '.$attrib['column_name']);
+                                       $receipt['error'][] = array('msg' => 
lang('Unable to add field %1 ', $attrib['column_name']));
                                }
                        }
                        
@@ -267,10 +267,10 @@
                                {
                                        foreach ($result['error'] as $error) 
                                        {
-                                               $receipt['error'][] = 
array('msg' => $error['msg'].' BuildingPart: '. $k);
+                                               $receipt['error'][] = 
array('msg' => $error['msg'].'. Building Part: '. $k);
                                        }
                                } else {
-                                       $receipt['message'][] = array('msg' => 
lang('Custom field has been created').' BuildingPart: '. $k);
+                                       $receipt['message'][] = array('msg' => 
lang('Attributes has been added').'. Building Part: '. $k);
                                }
                        }
                        
@@ -364,14 +364,14 @@
                                if ($e)
                                {
                                        $this->db->transaction_abort();
-                                       return $message['error'][] = 
array('msg' => $e->getMessage());
+                                       $message['error'][] = array('msg' => 
$e->getMessage());
+                                       return $message;
                                }
                        }
 
                        $this->db->transaction_commit();
-                       $GLOBALS['phpgw']->session->appsession('components', 
'property', $components_added);
-                        
-                       return $message['message'][] = array('msg' => 'all 
components saved successfully');                      
+                       $message['message'][] = array('msg' => 'all components 
saved successfully');
+                       return $message;                 
                        
                        /*$components_not_added = array();
                        




reply via email to

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