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  87c9c37ef651562da35af368a795f441ddd3da09 (commit)
      from  c458e234eb343e226ec803574ad3a0a92e16f692 (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=87c9c37ef651562da35af368a795f441ddd3da09

commit 87c9c37ef651562da35af368a795f441ddd3da09
Author: Franck Villaume <[email protected]>
Date:   Sat Apr 29 18:09:50 2017 +0200

    fix docman file deletion on child project using projec-hierarchy view

diff --git a/src/common/docman/actions/delfile.php 
b/src/common/docman/actions/delfile.php
index ea1200c..2206b3a 100644
--- a/src/common/docman/actions/delfile.php
+++ b/src/common/docman/actions/delfile.php
@@ -45,7 +45,7 @@ if (!forge_check_perm('docman', $g->getID(), 'approve')) {
 $arr_fileid = explode(',', getStringFromRequest('fileid'));
 foreach ($arr_fileid as $fileid) {
        if (!empty($fileid)) {
-               $d = document_get_object($fileid, $group_id);
+               $d = document_get_object($fileid, $g->getID());
                if ($d->isError() || !$d->delete()) {
                        $error_msg = $d->getErrorMessage();
                        session_redirect($urlredirect);

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

Summary of changes:
 src/common/docman/actions/delfile.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
FusionForge

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

Reply via email to