fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [16043]


From: nelson . guerra
Subject: [Fmsystem-commits] [16043]
Date: Sat, 3 Dec 2016 00:50:27 +0000 (UTC)

Revision: 16043
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16043
Author:   nelson224
Date:     2016-12-03 00:50:27 +0000 (Sat, 03 Dec 2016)
Log Message:
-----------


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

Modified: 
branches/dev-syncromind-2/property/inc/class.uiimport_components.inc.php
===================================================================
--- branches/dev-syncromind-2/property/inc/class.uiimport_components.inc.php    
2016-12-03 00:50:13 UTC (rev 16042)
+++ branches/dev-syncromind-2/property/inc/class.uiimport_components.inc.php    
2016-12-03 00:50:27 UTC (rev 16043)
@@ -128,15 +128,17 @@
                        $location_code = phpgw::get_var('location_code');
                        $id = phpgw::get_var('location_item_id');
                        $attrib_name_componentID = 
phpgw::get_var('attribute_name_component_id');
+                       $preview = phpgw::get_var('preview');
+                       $with_components = 
phpgw::get_var('with_components_check');
                        
-                       if ($_FILES['file']['tmp_name'])
+                       /*if ($_FILES['file']['tmp_name'])
                        {
                                if (!$attrib_name_componentID)
                                {
                                        $receipt['error'][] = array('msg' => 
lang('Choose attribute name for Component ID'));
                                        return $receipt;
                                }
-                       }
+                       }*/
                        
                        if (!$location_code)
                        {
@@ -146,8 +148,14 @@
                        
                        $import_component_files = new import_component_files();
                        
-                       if ($_FILES['file']['tmp_name'])
+                       if ($preview)
                        {
+                               $receipt = $import_component_files->preview();
+                               return $receipt;
+                       }
+                       
+                       if ($with_components)
+                       {
                                $receipt = 
$import_component_files->add_files_components_location($id, $location_code, 
$attrib_name_componentID);
                        } else {
                                $receipt = 
$import_component_files->add_files_location($id, $location_code);




reply via email to

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