[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [15994]
From: |
nelson . guerra |
Subject: |
[Fmsystem-commits] [15994] |
Date: |
Sat, 12 Nov 2016 02:49:30 +0000 (UTC) |
Revision: 15994
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15994
Author: nelson224
Date: 2016-11-12 02:49:30 +0000 (Sat, 12 Nov 2016)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind-2/property/inc/class.uigeneric_document.inc.php
Modified:
branches/dev-syncromind-2/property/inc/class.uigeneric_document.inc.php
===================================================================
--- branches/dev-syncromind-2/property/inc/class.uigeneric_document.inc.php
2016-11-12 02:49:00 UTC (rev 15993)
+++ branches/dev-syncromind-2/property/inc/class.uigeneric_document.inc.php
2016-11-12 02:49:30 UTC (rev 15994)
@@ -300,7 +300,7 @@
'type_id' => $type_id,
'district_id' => phpgw::get_var('district_id',
'int', 'REQUEST', 0),
'part_of_town_id' =>
phpgw::get_var('part_of_town_id', 'int', 'REQUEST', 0),
- 'allrows' => phpgw::get_var('length', 'int') ==
-1
+ 'allrows' => ($only_related) ? 1 :
(phpgw::get_var('length', 'int') == -1)
);
$solocation = CreateObject('property.solocation');
@@ -309,7 +309,7 @@
$location_id =
$GLOBALS['phpgw']->locations->get_id('property', ".location.{$type_id}");
if ($file_id)
{
- $relation_values =
$this->bo->get_file_relations($location_id, $file_id);
+ $relation_values =
$this->bo->get_file_relations($file_id);
}
$values_location_item_id = array();
if (count($relation_values))
@@ -695,7 +695,7 @@
'start' => phpgw::get_var('start', 'int', 'REQUEST', 0),
'results' => phpgw::get_var('length', 'int', 'REQUEST', 0),
'query' => $search['value'],
- 'allrows' => phpgw::get_var('length', 'int') == -1,
+ 'allrows' => ($only_related) ? 1 : (phpgw::get_var('length',
'int') == -1),
'filter_entity_group' => 0,
'location_id' => $location_id,
'filter_item' => array()
@@ -703,7 +703,7 @@
if ($file_id)
{
- $relation_values =
$this->bo->get_file_relations($location_id, $file_id);
+ $relation_values =
$this->bo->get_file_relations($file_id, $location_id );
}
$values_location_item_id = array();
if (count($relation_values))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [15994],
nelson . guerra <=