[Fusionforge-commits] FusionForge branch 6.1 updated. v6.1rc1-24-gc474f24

Franck Villaume nerville at libremir.placard.fr.eu.org
Sat Apr 21 16:03:20 CEST 2018


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, 6.1 has been updated
       via  c474f2459f5fd351e47b7ed3c0b774239ccb1f2f (commit)
      from  1af6f764afc5e2e5a182f524e27cce1a549de90c (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=c474f2459f5fd351e47b7ed3c0b774239ccb1f2f

commit c474f2459f5fd351e47b7ed3c0b774239ccb1f2f
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sat Apr 21 16:03:00 2018 +0200

    fix tracker widget with low permission setting

diff --git a/src/common/widget/Widget_TrackerMain.class.php b/src/common/widget/Widget_TrackerMain.class.php
index c60d9d4..e7b88bc 100644
--- a/src/common/widget/Widget_TrackerMain.class.php
+++ b/src/common/widget/Widget_TrackerMain.class.php
@@ -2,7 +2,7 @@
 /**
  * Main Tracker Content Widget Class
  *
- * Copyright 2016, Franck Villaume - TrivialDev
+ * Copyright 2016,2018, Franck Villaume - TrivialDev
  * Copyright 2017, Stephane-Eymeric Bredthauer - TrivialDev
  * http://fusionforge.org
  *
@@ -106,9 +106,9 @@ class Widget_TrackerMain extends Widget {
 			$return .= $HTML->multiTableRow(array(), $cells);
 		}
 		if (!$ath->usesCustomStatuses()) {
-			$cells = array();
-			$cells[][] = html_e('strong', array(), _('State')._(': '));
 			if (forge_check_perm('tracker', $atid, 'tech')) {
+				$cells = array();
+				$cells[][] = html_e('strong', array(), _('State')._(': '));
 				if (in_array('status', $fieldInFormula)) {
 					$class = 'in-formula';
 				} else {
@@ -119,10 +119,13 @@ class Widget_TrackerMain extends Widget {
 				} else {
 					$cells[][] = $ath->statusBox('status_id', 'xzxz', false, '', array('form' => 'trackerform', 'class' => $class));
 				}
-			} else {
+				$return .= $HTML->multiTableRow(array(), $cells);
+			} elseif ($func == 'detail') {
+				$cells = array();
+				$cells[][] = html_e('strong', array(), _('State')._(': '));
 				$cells[][] = $ah->getStatusName();
+				$return .= $HTML->multiTableRow(array(), $cells);
 			}
-			$return .= $HTML->multiTableRow(array(), $cells);
 		}
 		if (forge_check_perm('tracker', $atid, 'manager')) {
 			$cells = array();

-----------------------------------------------------------------------

Summary of changes:
 src/common/widget/Widget_TrackerMain.class.php | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list