[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [16167]
From: |
nelson . guerra |
Subject: |
[Fmsystem-commits] [16167] |
Date: |
Mon, 16 Jan 2017 17:11:10 -0500 (EST) |
Revision: 16167
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16167
Author: nelson224
Date: 2017-01-16 17:11:10 -0500 (Mon, 16 Jan 2017)
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
2017-01-16 22:10:49 UTC (rev 16166)
+++ branches/dev-syncromind-2/property/inc/class.uiimport_components.inc.php
2017-01-16 22:11:10 UTC (rev 16167)
@@ -862,8 +862,7 @@
public function get_attributes_from_template()
{
- //$profile = $this->config_repository['profile'];
-
+ $selected_attribute =
phpgw::get_var('selected_attribute');
$category_template =
phpgw::get_var('category_template');
$template_info = explode('_', $category_template);
@@ -874,8 +873,8 @@
$list = array();
foreach ($attrib_list as $attrib)
{
- //$selected =
($profile['attrib_name_componentID']['id'] == $attrib['column_name']) ? 1 : 0;
- $list[] = array('id' => $attrib['column_name'],
'name' => $attrib['input_text']);
+ $selected = ($selected_attribute ==
$attrib['column_name']) ? 1 : 0;
+ $list[] = array('id' => $attrib['column_name'],
'name' => $attrib['input_text'], 'selected' => $selected);
}
array_unshift($list, array('id' => '', 'name' =>
lang('choose attribute')));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [16167],
nelson . guerra <=