fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [7921] Property: import: update


From: Sigurd Nes
Subject: [Fmsystem-commits] [7921] Property: import: update
Date: Sun, 23 Oct 2011 11:19:08 +0000

Revision: 7921
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7921
Author:   sigurdne
Date:     2011-10-23 11:18:35 +0000 (Sun, 23 Oct 2011)
Log Message:
-----------
Property: import: update

Modified Paths:
--------------
    trunk/property/inc/import/default/cvs_import_kunstoversikt_bkb

Modified: trunk/property/inc/import/default/cvs_import_kunstoversikt_bkb
===================================================================
--- trunk/property/inc/import/default/cvs_import_kunstoversikt_bkb      
2011-10-21 14:33:16 UTC (rev 7920)
+++ trunk/property/inc/import/default/cvs_import_kunstoversikt_bkb      
2011-10-23 11:18:35 UTC (rev 7921)
@@ -40,6 +40,19 @@
                                $this->errors[] = "Mangler objekt, hopper over: 
{$data[3]}";
                                return true;
                        }
+
+                       $plassering_descr_arr = array();
+                       $count_plassering = count($plassering);
+                       for ($i=3;$i<$count_plassering;$i++)
+                       {
+                               if($plassering[$i])
+                               {
+                                       $plassering_descr_arr[] = 
$plassering[$i];
+                               }
+                       }
+
+                       $plassering_descr = implode('.', $plassering_descr_arr);
+//_debug_array($plassering_descr);
 /*
                        if(substr($plassering[0],0,1) == 'B')
                        {
@@ -51,7 +64,7 @@
                        $location_code = substr($byggid,0,4) . '-0' . 
substr($byggid,-1);
 //_debug_array($location_code);
                        $location_data = 
execMethod('property.solocation.read_single', $location_code );
-_debug_array($data);
+//_debug_array($data);
 //_debug_array($location_data);die();
                        if(!$location_data)
                        {
@@ -72,6 +85,8 @@
                                $address = 
$this->db->db_addslashes($location_data['loc1_name']);
                        }
 
+                       $address .= $plassering_descr ? ", $plassering_descr" : 
'';
+
                        $id = (int)$data[2];
                        
 




reply via email to

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