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  2fdd979b25b924b68a3c38233a456be16db205c7 (commit)
      from  d1d6f18deffa7a3d16d3b38de344dc8468aeec8b (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=2fdd979b25b924b68a3c38233a456be16db205c7

commit 2fdd979b25b924b68a3c38233a456be16db205c7
Author: Franck Villaume <[email protected]>
Date:   Sun Apr 29 16:07:41 2018 +0200

    tracker widget: fix wrong value assignment, better test for readonly flag

diff --git a/src/common/widget/Widget_TrackerContent.class.php 
b/src/common/widget/Widget_TrackerContent.class.php
index 159728c..3dae4d4 100644
--- a/src/common/widget/Widget_TrackerContent.class.php
+++ b/src/common/widget/Widget_TrackerContent.class.php
@@ -370,12 +370,12 @@ EOS;
                                $selected = $ah->getExtraFieldData();
                                $efInFormula = $ath->getExtraFieldsInFormula();
                                $efWithFormula = 
$ath->getExtraFieldsWithFormula();
-                       } elseif ($func = 'add') {
+                       } elseif ($func == 'add') {
                                $selected = $ath->getExtraFieldsDefaultValue();
                                $efInFormula = 
$ath->getExtraFieldsInFormula(array(), false, false);
                                $efWithFormula = 
$ath->getExtraFieldsWithFormula(array(), false, false);
                        }
-                       if (!forge_check_perm('tracker', $atid, 'submit')) {
+                       if (!forge_check_perm('tracker', $atid, 'submit') || 
($func == 'detail' && !session_loggedin())) {
                                $readonly = true;
                        }
                        foreach ($this->layoutExtraFieldIDs as $row_id => 
$column_id) {

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

Summary of changes:
 src/common/widget/Widget_TrackerContent.class.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to