This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, master has been updated
via 9926c2af41fcf11fb4f33eea0a8dd70483e1bbcd (commit)
from 207d305e4ca213ee7acc8b6f97434cdd6fbff502 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=9926c2af41fcf11fb4f33eea0a8dd70483e1bbcd
commit 9926c2af41fcf11fb4f33eea0a8dd70483e1bbcd
Author: Franck Villaume <[email protected]>
Date: Sun Jun 11 19:31:44 2017 +0200
less code
diff --git a/src/common/tracker/include/ArtifactTypeHtml.class.php
b/src/common/tracker/include/ArtifactTypeHtml.class.php
index 174f625..a6a0e0e 100644
--- a/src/common/tracker/include/ArtifactTypeHtml.class.php
+++ b/src/common/tracker/include/ArtifactTypeHtml.class.php
@@ -457,8 +457,8 @@ class ArtifactTypeHtml extends ArtifactType {
$return = '';
- $taskcount = db_numrows($ah->getRelatedTasks());
- db_result_reset($ah->getRelatedTasks());
+ $tasks = $ah->getRelatedTasks();
+ $taskcount = db_numrows($tasks);
if (forge_check_perm('tracker_admin',
$ah->ArtifactType->Group->getID())) {
$is_admin=true;
@@ -476,8 +476,7 @@ class ArtifactTypeHtml extends ArtifactType {
(($is_admin) ? $title_arr[]=_('Remove Relation') : '');
$return .= $HTML->listTableTop($title_arr);
- for ($i = 0; $i < $taskcount; $i++) {
- $taskinfo =
db_fetch_array_by_row($ah->getRelatedTasks(), $i);
+ while ($taskinfo = db_fetch_array($tasks)) {
$totalPercentage +=
$taskinfo['percent_complete'];
$taskid = $taskinfo['project_task_id'];
$projectid = $taskinfo['group_project_id'];
-----------------------------------------------------------------------
Summary of changes:
src/common/tracker/include/ArtifactTypeHtml.class.php | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits