[Fusionforge-commits] FusionForge branch master updated. v6.0.5-1568-ge4098ac

Franck Villaume nerville at libremir.placard.fr.eu.org
Sat Mar 18 18:43:45 CET 2017


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  e4098acf28805ab4356dcf5d8f73df59e2df826f (commit)
      from  566d12342c962c197bcf3bfe8820876e864d6338 (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=e4098acf28805ab4356dcf5d8f73df59e2df826f

commit e4098acf28805ab4356dcf5d8f73df59e2df826f
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sat Mar 18 18:43:29 2017 +0100

    get the storageref for dump

diff --git a/src/common/docman/DocumentVersionFactory.class.php b/src/common/docman/DocumentVersionFactory.class.php
index a135875..32964f3 100644
--- a/src/common/docman/DocumentVersionFactory.class.php
+++ b/src/common/docman/DocumentVersionFactory.class.php
@@ -108,8 +108,15 @@ class DocumentVersionFactory extends FFError {
 					array($this->Document->getID()));
 		if ($res) {
 			$numrows = db_numrows($res);
+			$i = 0;
 			while ($arr = db_fetch_array($res)) {
-				$versions[] = $arr;
+				$versions[$i] = $arr;
+				if ($arr['filetype'] != 'URL') {
+					$versions[$i]['storageref'] = DocumentStorage::instance()->get($arr['serial_id']);
+				} else {
+					$versions[$i]['storageref'] = null;
+				}
+				$i++;
 			}
 		}
 		db_free_result($res);

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

Summary of changes:
 src/common/docman/DocumentVersionFactory.class.php | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list