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  b92931b222e0cf5b68a72c23e31dcba48077b85d (commit)
      from  3e979ad9a2ebfd28949a2813ee1629beeb4a1fe3 (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=b92931b222e0cf5b68a72c23e31dcba48077b85d

commit b92931b222e0cf5b68a72c23e31dcba48077b85d
Author: Franck Villaume <[email protected]>
Date:   Sun Mar 19 20:13:04 2017 +0100

    add missing information on dump

diff --git a/src/common/docman/DocumentFactory.class.php 
b/src/common/docman/DocumentFactory.class.php
index 1ef3326..e7fd8cc 100644
--- a/src/common/docman/DocumentFactory.class.php
+++ b/src/common/docman/DocumentFactory.class.php
@@ -343,8 +343,14 @@ class DocumentFactory extends FFError {
                        foreach ($docs as $doc) {
                                $dvf = new DocumentVersionFactory($doc);
                                $docArr = array();
-                               $docArr['docid'] = $doc->getID();
+                               $docArr['id'] = $doc->getID();
+                               $docArr['document'] = (array)$doc;
+                               unset($docArr['document']['Group']);
                                $docArr['versions'] = $dvf->getVersions();
+                               $docArr['monitor'] = $doc->getMonitorIds();
+                               $serialIDs = $dvf->getSerialIDs();
+                               $drf = new DocumentReviewFactory($doc);
+                               $docArr['reviews'] = 
$drf->getReviews($serialIDs);
                                $return[] = $docArr;
                        }
                }

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

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