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  07d8ae3124da92f8d3735e7ca37a377f413dd3d0 (commit)
      from  22bcc87dbdbdab5658b9b0a731875bd1db6313b8 (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=07d8ae3124da92f8d3735e7ca37a377f413dd3d0

commit 07d8ae3124da92f8d3735e7ca37a377f413dd3d0
Author: Franck Villaume <[email protected]>
Date:   Mon Nov 21 22:34:44 2016 +0100

    fix setAsDefault again...

diff --git a/src/common/tracker/actions/admin-updates.php 
b/src/common/tracker/actions/admin-updates.php
index 6497101..445c0bc 100644
--- a/src/common/tracker/actions/admin-updates.php
+++ b/src/common/tracker/actions/admin-updates.php
@@ -284,7 +284,7 @@ if (getStringFromRequest('add_extrafield')) {
 //
 } elseif (getStringFromRequest('update_opt')) {
        $boxid = getStringFromRequest('boxid');
-       $is_default = getStringFromRequest('is_default');
+       $is_default = getStringFromRequest('is_default', false);
        $ac = new ArtifactExtraField($ath,$boxid);
        if (!$ac || !is_object($ac)) {
                $error_msg .= _('Unable to create ArtifactExtraField Object');
@@ -301,7 +301,7 @@ if (getStringFromRequest('add_extrafield')) {
                        $name = getStringFromRequest('name');
                        $status_id = getIntFromRequest('status_id');
                        $autoAssignTo = getStringFromRequest('auto_assign_to');
-                       if 
(!$ao->update($name,$status_id,$autoAssignTo,$is_default)) {
+                       if (!$ao->update($name, $status_id, $autoAssignTo, 
$is_default)) {
                                $error_msg .= _('Update failed')._(': 
').$ao->getErrorMessage();
                                $ao->clearError();
                        } else {

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

Summary of changes:
 src/common/tracker/actions/admin-updates.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