Skip to content

Commit

Permalink
Merge branch 'master' into horde_5_2
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Dec 3, 2013
2 parents f8f007e + 36faf2b commit 8d439d5
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 7 deletions.
1 change: 1 addition & 0 deletions nag/docs/CHANGES
Expand Up @@ -2,6 +2,7 @@
v4.1.4-git
----------

[jan] Don't return future tasks from cost objects API.


------
Expand Down
6 changes: 4 additions & 2 deletions nag/lib/Api.php
Expand Up @@ -1258,9 +1258,11 @@ public function listCostObjects($criteria)
);
$result = array();
$tasks->reset();
$last_week = time() - 7 * 86400;
$now = time();
$last_week = $now - 7 * 86400;
while ($task = $tasks->each()) {
if ($task->completed && $task->completed_date < $last_week) {
if (($task->completed && $task->completed_date < $last_week) ||
($task->start && $task->start > $now)) {
continue;
}
$result[$task->id] = array(
Expand Down
4 changes: 2 additions & 2 deletions nag/package.xml
Expand Up @@ -33,7 +33,7 @@
</stability>
<license uri="http://www.horde.org/licenses/gpl">GPL-2.0</license>
<notes>
*
* [jan] Don&apos;t return future tasks from cost objects API.
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -1441,7 +1441,7 @@
<date>2013-10-29</date>
<license uri="http://www.horde.org/licenses/gpl">GPL-2.0</license>
<notes>
*
* [jan] Don&apos;t return future tasks from cost objects API.
</notes>
</release>
</changelog>
Expand Down
3 changes: 2 additions & 1 deletion turba/lib/Turba.php
Expand Up @@ -177,7 +177,8 @@ static public function getColumns()
$source = array_splice($cols, 0, 1);
$columns[$source[0]] = array();
foreach ($cols as $col) {
if (isset($GLOBALS['cfgSources'][$source[0]]['map'][$col])) {
if ($col == '__tags' ||
isset($GLOBALS['cfgSources'][$source[0]]['map'][$col])) {
$columns[$source[0]][] = $col;
}
}
Expand Down
1 change: 1 addition & 0 deletions whups/docs/CHANGES
Expand Up @@ -2,6 +2,7 @@
v3.0.0-git
----------

[jan] Add "show" API link.


---------
Expand Down
9 changes: 9 additions & 0 deletions whups/lib/Api.php
Expand Up @@ -9,6 +9,15 @@
*/
class Whups_Api extends Horde_Registry_Api
{
/**
* Links.
*
* @var array
*/
protected $_links = array(
'show' => '%application%/ticket/?id=|ticket|'
);

/**
* Browse through Whups' object tree.
*
Expand Down
4 changes: 2 additions & 2 deletions whups/package.xml
Expand Up @@ -27,7 +27,7 @@
</stability>
<license uri="http://www.horde.org/licenses/bsdl.php">BSD-2-Clause</license>
<notes>
*
* [jan] Add "show" API link.
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -1065,7 +1065,7 @@
<date>2013-11-19</date>
<license uri="http://www.horde.org/licenses/bsdl.php">BSD-2-Clause</license>
<notes>
*
* [jan] Add "show" API link.
</notes>
</release>
</changelog>
Expand Down

0 comments on commit 8d439d5

Please sign in to comment.