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  af739cce2ca7d15a563d8afb8c6aaa43d8553396 (commit)
      from  7f5273c3e47d4e0f0ea6c8b0b928d702cf001a57 (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=af739cce2ca7d15a563d8afb8c6aaa43d8553396

commit af739cce2ca7d15a563d8afb8c6aaa43d8553396
Author: Franck Villaume <[email protected]>
Date:   Sun Jan 14 19:16:14 2018 +0100

    Add trailing Audit about is_template modification

diff --git a/src/common/include/Group.class.php 
b/src/common/include/Group.class.php
index 0ba1c80..b98370c 100644
--- a/src/common/include/Group.class.php
+++ b/src/common/include/Group.class.php
@@ -839,6 +839,9 @@ class Group extends FFError {
                $res = db_query_params('UPDATE groups SET is_template=$1 WHERE 
group_id=$2',
                                        array($booleanparam, $this->getID()));
                if ($res) {
+                       if ($booleanparam != $this->data_array['is_template']) {
+                               $this->addHistory('is_template', 
$this->data_array['is_template']);
+                       }
                        $this->data_array['is_template'] = $booleanparam;
                        db_commit();
                        return true;

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

Summary of changes:
 src/common/include/Group.class.php | 3 +++
 1 file changed, 3 insertions(+)


hooks/post-receive
-- 
FusionForge

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

Reply via email to