fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [17596] property, template for generic import: Remove


From: sigurdne
Subject: [Fmsystem-commits] [17596] property, template for generic import: Remove id-column from fm_location-tables
Date: Tue, 16 Jan 2018 11:34:00 -0500 (EST)

Revision: 17596
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=17596
Author:   sigurdne
Date:     2018-01-16 11:34:00 -0500 (Tue, 16 Jan 2018)
Log Message:
-----------
property, template for generic import: Remove id-column from fm_location-tables

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

Modified: trunk/property/inc/class.uiimport.inc.php
===================================================================
--- trunk/property/inc/class.uiimport.inc.php   2018-01-16 16:18:49 UTC (rev 
17595)
+++ trunk/property/inc/class.uiimport.inc.php   2018-01-16 16:34:00 UTC (rev 
17596)
@@ -415,6 +415,14 @@
 
                                $metadata = $this->db->metadata($this->table);
 
+                               /**
+                                * Remove id-column from fm_location-tables
+                                */
+                               if(!empty($metadata['location_code']) && 
$metadata['loc1']->primary_key  && !$metadata['id']->primary_key)
+                               {
+                                       unset($metadata['id']);
+                               }
+
                                foreach ($metadata as $field => $info)
                                {
                                        $_fields[$field] = true;




reply via email to

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