[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [11269] logistic
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [11269] logistic |
Date: |
Wed, 28 Aug 2013 13:42:59 +0000 |
Revision: 11269
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11269
Author: sigurdne
Date: 2013-08-28 13:42:46 +0000 (Wed, 28 Aug 2013)
Log Message:
-----------
logistic
Modified Paths:
--------------
trunk/logistic/inc/class.soactivity.inc.php
trunk/logistic/inc/class.uiactivity.inc.php
Modified: trunk/logistic/inc/class.soactivity.inc.php
===================================================================
--- trunk/logistic/inc/class.soactivity.inc.php 2013-08-27 09:05:48 UTC (rev
11268)
+++ trunk/logistic/inc/class.soactivity.inc.php 2013-08-28 13:42:46 UTC (rev
11269)
@@ -234,6 +234,19 @@
return $ret;
}
+
+ public function get_single(int $id)
+ {
+ $objects = parent::get(null, null, null, null, null,
null, array($this->get_id_field_name() => $id));
+ if(count($objects) > 0)
+ {
+ $keys = array_keys($objects);
+ return $objects[$keys[0]];
+ }
+ return null;
+ }
+
+
/**
* used for retrive the path for a particular node from a
hierarchy
*
Modified: trunk/logistic/inc/class.uiactivity.inc.php
===================================================================
--- trunk/logistic/inc/class.uiactivity.inc.php 2013-08-27 09:05:48 UTC (rev
11268)
+++ trunk/logistic/inc/class.uiactivity.inc.php 2013-08-28 13:42:46 UTC (rev
11269)
@@ -317,7 +317,7 @@
$num_of_objects = null;//get them all
$activity_id =
phpgw::get_var('activity_id');
$filters = array('id' => $activity_id);
- $result_objects =
$this->so->get($start_index, $num_of_objects, $sort_field, $sort_ascending,
$search_for, $search_type, $filters);
+ $result_objects =
$this->so->get($start_index, $num_of_objects, $sort_field, $sort_ascending,
$search_for, $search_type, $filters,true);
$object_count =
$this->so->get_count($search_for, $search_type, $filters);
array_shift($result_objects);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [11269] logistic,
Sigurd Nes <=