[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [11599] property: project search
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [11599] property: project search |
Date: |
Thu, 16 Jan 2014 10:34:56 +0000 |
Revision: 11599
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11599
Author: sigurdne
Date: 2014-01-16 10:34:55 +0000 (Thu, 16 Jan 2014)
Log Message:
-----------
property: project search
Modified Paths:
--------------
trunk/property/inc/class.bocommon.inc.php
trunk/property/inc/class.sodocument.inc.php
trunk/property/inc/class.soproject.inc.php
trunk/property/inc/class.soworkorder.inc.php
Modified: trunk/property/inc/class.bocommon.inc.php
===================================================================
--- trunk/property/inc/class.bocommon.inc.php 2014-01-15 20:52:11 UTC (rev
11598)
+++ trunk/property/inc/class.bocommon.inc.php 2014-01-16 10:34:55 UTC (rev
11599)
@@ -1287,20 +1287,6 @@
$uicols['sortable'][] = true;
}
- if($uicol_address)
- {
- $uicols['input_type'][] = 'text';
- $uicols['name'][] =
'address';
- $uicols['descr'][] =
lang('address');
- $uicols['statustext'][] =
lang('address');
- $uicols['exchange'][] = false;
- $uicols['align'][] = '';
- $uicols['datatype'][] = '';
- $uicols['formatter'][] = '';
- $uicols['classname'][] = '';
- $uicols['sortable'][] = true;
- }
-
$config_count = count($config);
for ($i=0;$i<$config_count;$i++)
{
Modified: trunk/property/inc/class.sodocument.inc.php
===================================================================
--- trunk/property/inc/class.sodocument.inc.php 2014-01-15 20:52:11 UTC (rev
11598)
+++ trunk/property/inc/class.sodocument.inc.php 2014-01-16 10:34:55 UTC (rev
11599)
@@ -149,8 +149,7 @@
'paranthesis' => $paranthesis,
'query' => $query,
'force_location'=> true,
- 'no_address' => true,
- 'uicol_address'=> true
+ 'no_address' => false,
));
Modified: trunk/property/inc/class.soproject.inc.php
===================================================================
--- trunk/property/inc/class.soproject.inc.php 2014-01-15 20:52:11 UTC (rev
11598)
+++ trunk/property/inc/class.soproject.inc.php 2014-01-16 10:34:55 UTC (rev
11599)
@@ -336,16 +336,16 @@
//----- wo_hour_status
$sql =
$this->bocommon->generate_sql(array('entity_table'=>$entity_table,'cols'=>$cols,'cols_return'=>$cols_return,
-
'uicols'=>$uicols,'joinmethod'=>$joinmethod,'paranthesis'=>$paranthesis,'query'=>$query,'force_location'=>true,'location_level'
=> 2));
+
'uicols'=>$uicols,'joinmethod'=>$joinmethod,'paranthesis'=>$paranthesis,'force_location'=>true,'location_level'
=> 0));
$this->bocommon->fm_cache('sql_project_' .
!!$wo_hour_cat_id,$sql);
- $this->uicols =
$this->bocommon->uicols;
+ $uicols = $this->bocommon->uicols;
$cols_return =
$this->bocommon->cols_return;
$type_id =
$this->bocommon->type_id;
$this->cols_extra =
$this->bocommon->cols_extra;
- $this->bocommon->fm_cache('uicols_project_' .
!!$wo_hour_cat_id,$this->uicols);
+ $this->bocommon->fm_cache('uicols_project_' .
!!$wo_hour_cat_id,$uicols);
$this->bocommon->fm_cache('cols_return_project_' .
!!$wo_hour_cat_id,$cols_return);
$this->bocommon->fm_cache('type_id_project_' .
!!$wo_hour_cat_id,$type_id);
$this->bocommon->fm_cache('cols_extra_project_'
. !!$wo_hour_cat_id,$this->cols_extra);
@@ -471,7 +471,7 @@
{
$cats = CreateObject('phpgwapi.categories',
-1, 'property', '.project');
$cats->supress_info = true;
- $cat_list_project =
$cats->return_sorted_array(0, false, '', '', '', false, $cat_id,
false);//(0,$limit = false,$query = '',$sort = '',$order = '',$globals = False,
$parent_id = $cat_id, $use_acl = false);
+ $cat_list_project =
$cats->return_sorted_array(0, false, '', '', '', false, $cat_id, false);
$cat_filter = array($cat_id);
foreach ($cat_list_project as $_category)
{
@@ -561,21 +561,20 @@
$where= 'AND';
}
- //_debug_array($criteria);
$querymethod = '';
if($query)
{
$query = $this->db->db_addslashes($query);
$query = str_replace(",",'.',$query);
- if(stristr($query, '.') &&
!isset($criteria[0]['field']))
+ if(isset($criteria[0]['field']) &&
$criteria[0]['field'] == 'fm_project.p_num')
{
$query=explode(".",$query);
- $querymethod = " $where
(fm_project.loc1='" . $query[0] . "' AND fm_project.loc".$type_id."='" .
$query[1] . "')";
+ $querymethod = " $where
(fm_project.p_entity_id='" . (int)$query[1] . "' AND fm_project.p_cat_id='" .
(int)$query[2] . "' AND fm_project.p_num='" . (int)$query[3] . "')";
}
- else if(isset($criteria[0]['field']) &&
$criteria[0]['field'] == 'fm_project.p_num')
+ else if(stristr($query, '.'))
{
$query=explode(".",$query);
- $querymethod = " $where
(fm_project.p_entity_id='" . (int)$query[1] . "' AND fm_project.p_cat_id='" .
(int)$query[2] . "' AND fm_project.p_num='" . (int)$query[3] . "')";
+ $querymethod = " $where
(fm_project.loc1='" . $query[0] . "' AND fm_project.loc".$type_id."='" .
$query[1] . "')";
}
else
{
Modified: trunk/property/inc/class.soworkorder.inc.php
===================================================================
--- trunk/property/inc/class.soworkorder.inc.php 2014-01-15 20:52:11 UTC
(rev 11598)
+++ trunk/property/inc/class.soworkorder.inc.php 2014-01-16 10:34:55 UTC
(rev 11599)
@@ -411,8 +411,8 @@
$entity_table = 'fm_project';
$sql =
$this->bocommon->generate_sql(array('entity_table'=>$entity_table,'location_table'=>$location_table,'cols'=>$cols,'cols_return'=>$cols_return,
-
'uicols'=>$uicols,'joinmethod'=>$joinmethod,'paranthesis'=>$paranthesis,'query'=>$query,
- 'force_location'=>true, 'no_address' =>
$no_address,'location_level' => 2));
+
'uicols'=>$uicols,'joinmethod'=>$joinmethod,'paranthesis'=>$paranthesis,
+ 'force_location'=>true, 'no_address' =>
$no_address,'location_level' => 0));
$this->bocommon->fm_cache('sql_workorder'.!!$search_vendor . '_' .
!!$wo_hour_cat_id . '_' . !!$b_group,$sql);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [11599] property: project search,
Sigurd Nes <=