fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [14940] property: tickets


From: Sigurd Nes
Subject: [Fmsystem-commits] [14940] property: tickets
Date: Tue, 26 Apr 2016 11:02:40 +0000

Revision: 14940
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14940
Author:   sigurdne
Date:     2016-04-26 11:02:40 +0000 (Tue, 26 Apr 2016)
Log Message:
-----------
property: tickets

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

Modified: trunk/property/inc/class.uitts.inc.php
===================================================================
--- trunk/property/inc/class.uitts.inc.php      2016-04-26 11:00:12 UTC (rev 
14939)
+++ trunk/property/inc/class.uitts.inc.php      2016-04-26 11:02:40 UTC (rev 
14940)
@@ -515,20 +515,19 @@
                        $uicols['name'][] = 'subject';
                        $uicols['descr'][] = lang('subject');
 
-//                     $location_types = 
execMethod('property.soadmin_location.select_location_type');
+                       $location_types = 
execMethod('property.soadmin_location.select_location_type');
 //                     $level_assigned = 
isset($this->bo->config->config_data['list_location_level']) && 
$this->bo->config->config_data['list_location_level'] ? 
$this->bo->config->config_data['list_location_level'] : array();
 
-//                     foreach ($location_types as $dummy => $level)
-//                     {
-//                             if (in_array($level['id'], $level_assigned))
-//                             {
-//                                     $uicols['name'][] = 
"loc{$level['id']}_name";
-//                                     $uicols['descr'][] = $level['name'];
-//                             }
-//                     }
+                       foreach ($location_types as $dummy => $level)
+                       {
+               //              if (in_array($level['id'], $level_assigned))
+                               {
+                                       $uicols['name'][] = 
"loc{$level['id']}_name";
+                                       $uicols['descr'][] = $level['name'];
+                               }
+                               break;//first one only...
+                       }
 
-                       $uicols['name'][] = "loc1_name";
-                       $uicols['descr'][] = 'Eiendom';
 
                        $uicols['name'][] = 'entry_date';
                        $uicols['descr'][] = lang('entry date');




reply via email to

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