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  79de1073a62745e19d4c5cb713ece05b07119bb2 (commit)
      from  7a5dde49b261ad1509756d9eb626b9dad5b4e476 (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=79de1073a62745e19d4c5cb713ece05b07119bb2

commit 79de1073a62745e19d4c5cb713ece05b07119bb2
Author: Franck Villaume <franck.villa...@trivialdev.com>
Date:   Sat Oct 15 10:12:30 2016 +0200

    fix download as zip on search, which supports project hierarchy plugin

diff --git a/src/www/docman/view.php b/src/www/docman/view.php
index 8ec496a..a2b94fe 100644
--- a/src/www/docman/view.php
+++ b/src/www/docman/view.php
@@ -295,6 +295,11 @@ if (is_numeric($docid)) {
                        }
                        foreach ($arr_fileid as $docid) {
                                if (!empty($docid)) {
+                                       if (strpos($docid, '-') !== false) {
+                                               $docArr = explode('-', $docid);
+                                               $g = 
group_get_object($docArr[0]);
+                                               $docid =  $docArr[1];
+                                       }
                                        $d = new Document($g, $docid);
                                        if (!$d || !is_object($d)) {
                                                @unlink($file);

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

Summary of changes:
 src/www/docman/view.php | 5 +++++
 1 file changed, 5 insertions(+)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
Fusionforge-commits@lists.fusionforge.org
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to