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  b4b8c114ed5fe4c91a7a0be299ee4349b92f3420 (commit)
      from  beaf07109aa25af9a1a4bbeba46d20fa6de2b855 (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=b4b8c114ed5fe4c91a7a0be299ee4349b92f3420

commit b4b8c114ed5fe4c91a7a0be299ee4349b92f3420
Author: Franck Villaume <[email protected]>
Date:   Tue Mar 8 20:16:32 2016 +0100

    docman: fix recursive status update. i.e. move to trash

diff --git a/src/common/docman/DocumentGroup.class.php 
b/src/common/docman/DocumentGroup.class.php
index de70719..57bdef6 100644
--- a/src/common/docman/DocumentGroup.class.php
+++ b/src/common/docman/DocumentGroup.class.php
@@ -715,13 +715,10 @@ class DocumentGroup extends Error {
                        if ($dgf->isError())
                                exit_error($dgf->getErrorMessage(), 'docman');
 
-                       if ($stateid == 2) {
-                               $stateidArr = array(2);
-                       } else {
-                               $stateidArr = array(1, 5);
-                       }
+                       $stateidArr = array(1, 3, 4, 5);
                        $nested_groups =& $dgf->getNested($stateidArr);
 
+                       $df->setStateID($stateidArr);
                        $df->setDocGroupID($this->getID());
                        $d_arr =& $df->getDocuments();
 

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

Summary of changes:
 src/common/docman/DocumentGroup.class.php | 7 ++-----
 1 file changed, 2 insertions(+), 5 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