[Fusionforge-commits] r12273 - in trunk/src: common/tracker www/tracker www/tracker/admin
Alain Peyrat
aljeux at libremir.placard.fr.eu.org
Fri Feb 11 21:24:31 CET 2011
Author: aljeux
Date: 2011-02-11 21:24:30 +0100 (Fri, 11 Feb 2011)
New Revision: 12273
Modified:
trunk/src/common/tracker/ArtifactFactory.class.php
trunk/src/www/tracker/admin/form-customizelist.php
trunk/src/www/tracker/browse.php
trunk/src/www/tracker/query.php
Log:
Add field last_modified_date in query, browse list and customize list (trackers)
Modified: trunk/src/common/tracker/ArtifactFactory.class.php
===================================================================
--- trunk/src/common/tracker/ArtifactFactory.class.php 2011-02-11 20:08:35 UTC (rev 12272)
+++ trunk/src/common/tracker/ArtifactFactory.class.php 2011-02-11 20:24:30 UTC (rev 12273)
@@ -3,6 +3,7 @@
* FusionForge trackers
*
* Copyright 2002, GForge, LLC
+ * Copyright (C) 2011 Alain Peyrat - Alcatel-Lucent
*
* This file is part of FusionForge.
*
@@ -204,7 +205,8 @@
'close_date',
'assigned_to',
'submitted_by',
- 'priority') ;
+ 'priority',
+ 'last_modified_date') ;
$efarr = $this->ArtifactType->getExtraFields(array(ARTIFACT_EXTRAFIELDTYPE_TEXT,
ARTIFACT_EXTRAFIELDTYPE_TEXTAREA,
ARTIFACT_EXTRAFIELDTYPE_INTEGER,
Modified: trunk/src/www/tracker/admin/form-customizelist.php
===================================================================
--- trunk/src/www/tracker/admin/form-customizelist.php 2011-02-11 20:08:35 UTC (rev 12272)
+++ trunk/src/www/tracker/admin/form-customizelist.php 2011-02-11 20:24:30 UTC (rev 12273)
@@ -3,6 +3,7 @@
* FusionForge Artifact update Form
*
* Copyright 2010, FusionForge Team
+ * Copyright (C) 2011 Alain Peyrat - Alcatel-Lucent
*
* This file is part of FusionForge.
*
@@ -49,7 +50,8 @@
'submitted_by' => _('Submitted By'),
'close_date' => _('Close Date'),
'details' => _('Detailed description'),
- 'related_tasks' => _('Related tasks')
+ 'related_tasks' => _('Related tasks'),
+ 'last_modified_date' => _('Last Modified Date')
);
if(count($ath->getExtraFields(array(ARTIFACT_EXTRAFIELDTYPE_STATUS))) > 0) {
Modified: trunk/src/www/tracker/browse.php
===================================================================
--- trunk/src/www/tracker/browse.php 2011-02-11 20:08:35 UTC (rev 12272)
+++ trunk/src/www/tracker/browse.php 2011-02-11 20:24:30 UTC (rev 12273)
@@ -189,6 +189,7 @@
$order_name_arr[]=_('Priority');
$order_name_arr[]=_('Summary');
$order_name_arr[]=_('Open Date');
+$order_name_arr[]=_('Last Modified Date');
$order_name_arr[]=_('Close Date');
$order_name_arr[]=_('Submitter');
$order_name_arr[]=_('Assignee');
@@ -199,6 +200,7 @@
$order_arr[]='priority';
$order_arr[]='summary';
$order_arr[]='open_date';
+$order_arr[]='last_modified_date';
$order_arr[]='close_date';
$order_arr[]='submitted_by';
$order_arr[]='assigned_to';
@@ -543,6 +545,8 @@
$title=_('Submitted by');
if ($f == 'related_tasks')
$title=_('Related tasks');
+ if ($f == 'last_modified_date')
+ $title=_('Last Modified Date');
}
$title_arr[] = $title;
}
@@ -603,6 +607,9 @@
$s = ' ';
}
echo '</td>';
+ } else if ($f == 'last_modified_date') {
+ echo '<td>'. ($art_arr[$i]->getLastModifiedDate() ?
+ date(_('Y-m-d H:i'),$art_arr[$i]->getLastModifiedDate()) :' ') .'</td>';
} else if (intval($f) > 0) {
// Now display extra-fields (fields are numbers).
$value = $extra_data[$f]['value'];
Modified: trunk/src/www/tracker/query.php
===================================================================
--- trunk/src/www/tracker/query.php 2011-02-11 20:08:35 UTC (rev 12272)
+++ trunk/src/www/tracker/query.php 2011-02-11 20:24:30 UTC (rev 12273)
@@ -2,6 +2,7 @@
/**
* Copyright 2005 (c) GForge Group, LLC; Anthony J. Pugliese,
* Copyright 2010 (c) Fusionforge Team
+ * Copyright (C) 2011 Alain Peyrat - Alcatel-Lucent
* http://fusionforge.org
*
* This file is part of FusionForge.
@@ -185,6 +186,7 @@
$order_name_arr[]=_('Priority');
$order_name_arr[]=_('Summary');
$order_name_arr[]=_('Open Date');
+$order_name_arr[]=_('Last Modified Date');
$order_name_arr[]=_('Close Date');
$order_name_arr[]=_('Submitter');
$order_name_arr[]=_('Assignee');
@@ -195,6 +197,7 @@
$order_arr[]='priority';
$order_arr[]='summary';
$order_arr[]='open_date';
+$order_arr[]='last_modified_date';
$order_arr[]='close_date';
$order_arr[]='submitted_by';
$order_arr[]='assigned_to';
More information about the Fusionforge-commits
mailing list