[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [15709]
From: |
nelson . guerra |
Subject: |
[Fmsystem-commits] [15709] |
Date: |
Wed, 21 Sep 2016 02:29:33 +0000 (UTC) |
Revision: 15709
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15709
Author: nelson224
Date: 2016-09-21 02:29:33 +0000 (Wed, 21 Sep 2016)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind-2/property/inc/import/class.import_entity_categories.inc.php
Modified:
branches/dev-syncromind-2/property/inc/import/class.import_entity_categories.inc.php
===================================================================
---
branches/dev-syncromind-2/property/inc/import/class.import_entity_categories.inc.php
2016-09-21 02:29:19 UTC (rev 15708)
+++
branches/dev-syncromind-2/property/inc/import/class.import_entity_categories.inc.php
2016-09-21 02:29:33 UTC (rev 15709)
@@ -28,14 +28,14 @@
$this->config_repository =
$this->config->read_repository();
$this->array_entity_categories = array(
- '0' => array('name' => '0 - Generelt'),
- '01' => array('name' => '01 - Informasjon og
hjelp'),
- '02' => array('name' => '02 - Krav til
dokumentasjon'),
+ '0' => array('name' => '0 Generelt'),
+ '01' => array('name' => '01 Informasjon og
hjelp'),
+ '02' => array('name' => '02 Krav til
dokumentasjon'),
- '1' => array('name' => '1 - Brannsikring'),
- '11' => array('name' => '11 - Branntekniske
krav'),
- '12' => array('name' => '12 -
Tegninger(.pdf)/o-planer'),
- '13' => array('name' => '13 - Brannteknisk
dokumentasjon')
+ '1' => array('name' => '1 Brannsikring'),
+ '11' => array('name' => '11 Branntekniske
krav'),
+ '12' => array('name' => '12
Tegninger(.pdf)/o-planer'),
+ '13' => array('name' => '13 Brannteknisk
dokumentasjon')
);
if ($template_id)
@@ -95,13 +95,12 @@
public function
prepare_entity_categories($building_part_out_table)
{
$new_categories = array();
+ $receipt = array();
$list_entity_categories =
$this->list_entity_categories();
foreach ($building_part_out_table as $building_part =>
$name)
- {
- $receipt = array();
-
+ {
if (strlen($building_part) > 1)
{
$receipt =
$this->_search_parent_category($new_categories, $list_entity_categories,
$building_part);
@@ -121,14 +120,6 @@
$receipt['new_entity_categories'] = $new_categories;
- /*if (!$receipt['error'])
- {
- $config = createObject('phpgwapi.config',
'component_import');
- $config->read_repository();
- $config->value('new_entity_categories',
serialize($new_categories));
- $config->save_repository();
- }*/
-
return $receipt;
}
@@ -381,7 +372,7 @@
$attrib['appname'] = $appname;
$attrib['location'] = $location;
- $attrib['column_name'] =
$attrib_names[$_row_key];
+ $attrib['column_name'] =
mb_strtolower($attrib_names[$_row_key], 'UTF-8');
$attrib['input_text'] =
ucfirst($attrib_names[$_row_key]);
$attrib['statustext'] =
ucfirst($attrib_names[$_row_key]);
$attrib['column_info']['type'] =
$attrib_data_types[$_row_key];
@@ -413,18 +404,6 @@
$receipt['new_attribs_for_template'] = $new_attributes;
- /*if (count($new_attributes))
- {
- $config = createObject('phpgwapi.config',
'component_import');
- $config->read_repository();
- $config->value('attribs_for_template',
serialize($new_attributes));
- $config->save_repository();
-
- $receipt['message'][] = array('msg' => lang('%1
attributes prepared for template', count($new_attributes)));
- } else {
- $receipt['message'][] = array('msg' =>
lang('Not exist attributes to insert the template'));
- }*/
-
return $receipt;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [15709],
nelson . guerra <=