[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [6900] property: fixes
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [6900] property: fixes |
Date: |
Tue, 01 Feb 2011 12:21:56 +0000 |
Revision: 6900
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6900
Author: sigurdne
Date: 2011-02-01 12:21:56 +0000 (Tue, 01 Feb 2011)
Log Message:
-----------
property: fixes
Modified Paths:
--------------
trunk/property/inc/class.boentity.inc.php
trunk/property/inc/class.uientity.inc.php
Modified: trunk/property/inc/class.boentity.inc.php
===================================================================
--- trunk/property/inc/class.boentity.inc.php 2011-02-01 11:46:09 UTC (rev
6899)
+++ trunk/property/inc/class.boentity.inc.php 2011-02-01 12:21:56 UTC (rev
6900)
@@ -213,7 +213,7 @@
break;
}
- $categories=
$this->soadmin_entity->read_category(array('allrows'=>true,'entity_id'=>$this->entity_id,
'required' => $required));
+ $categories=
$this->soadmin_entity->read_category(array('allrows'=>true,'entity_id'=>$this->entity_id,
'required' => $required, 'order' => 'name', 'sort' => 'ASC'));
return
$this->bocommon->select_list($selected,$categories);
}
Modified: trunk/property/inc/class.uientity.inc.php
===================================================================
--- trunk/property/inc/class.uientity.inc.php 2011-02-01 11:46:09 UTC (rev
6899)
+++ trunk/property/inc/class.uientity.inc.php 2011-02-01 12:21:56 UTC (rev
6900)
@@ -347,6 +347,7 @@
$start_date = urldecode($this->start_date);
$end_date = urldecode($this->end_date);
$dry_run = false;
+ $second_display = phpgw::get_var('second_display',
'bool');
$this->save_sessiondata();
@@ -361,7 +362,14 @@
$group_filters = 'filter';
$GLOBALS['phpgw']->xslttpl->add_file(array('search_field'));
}
+ $default_district =
(isset($GLOBALS['phpgw_info']['user']['preferences']['property']['default_district'])?$GLOBALS['phpgw_info']['user']['preferences']['property']['default_district']:'');
+ if ($default_district && !$second_display &&
!$this->district_id)
+ {
+ $this->bo->district_id = $default_district;
+ $this->district_id =
$default_district;
+ }
+
$datatable = array();
$values_combo_box = array();
@@ -376,14 +384,17 @@
'menuaction'
=> 'property.uientity.index',
'entity_id'
=> $this->entity_id,
'cat_id' =>
$this->cat_id,
- 'type'
=> $this->type
+ 'type'
=> $this->type,
+ 'district_id'
=> $this->district_id
));
$datatable['config']['allow_allrows'] = true;
$datatable['config']['base_java_url'] =
"menuaction:'property.uientity.index',".
+ "second_display:1,".
"entity_id:'{$this->entity_id}',".
"cat_id:'{$this->cat_id}',".
- "type:'{$this->type}'";
+ "type:'{$this->type}',".
+ "district_id:'{$this->district_id}'";
// this array "$arr_filter_hide" indicate what
filters are hidden or not
$arr_filter_hide = array();
@@ -452,10 +463,11 @@
'action' =>
$GLOBALS['phpgw']->link('/index.php',
array
(
- 'menuaction'
=> 'property.uientity.index',
- 'entity_id'
=> $this->entity_id,
- 'cat_id'
=> $this->cat_id,
- 'type'
=> $this->type
+ 'menuaction'
=> 'property.uientity.index',
+
'second_display' => $second_display,
+ 'entity_id'
=> $this->entity_id,
+ 'cat_id'
=> $this->cat_id,
+ 'type'
=> $this->type
)),
'fields' => array
(
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [6900] property: fixes,
Sigurd Nes <=