[Fusionforge-commits] FusionForge branch master updated. 6.0.4-484-g18c6ed2

Franck Villaume nerville at libremir.placard.fr.eu.org
Sun Jun 5 17:39:04 CEST 2016


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  18c6ed2d52d4d3d7254b0fa1a1a7c9b07a3edad8 (commit)
      from  891a4b0fbd54a18b022c42c7cbc31e49169f86fd (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=18c6ed2d52d4d3d7254b0fa1a1a7c9b07a3edad8

commit 18c6ed2d52d4d3d7254b0fa1a1a7c9b07a3edad8
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sun Jun 5 17:38:45 2016 +0200

    Docman: add support for crossref in document description

diff --git a/src/CHANGES b/src/CHANGES
index 7ee28c4..b83625f 100644
--- a/src/CHANGES
+++ b/src/CHANGES
@@ -8,6 +8,7 @@ FusionForge 6.X:
 * Docman: notify users on document. (TrivialDev)
 * Docman: support private directory. (TrivialDev)
 * Docman: support document versioning. (TrivialDev)
+* Docman: support cross ref. forum, documents, task or artifact. (TrivialDev)
 * Plugin AuthBuiltin: add captcha after 3 attempts with the same login [#795] (TrivialDev)
 * Projects Page: add paging system in full_list and tag_cloud subpages (TrivialDev)
 * SearchEngine: support only FTI queries (TrivialDev)
diff --git a/src/common/docman/Document.class.php b/src/common/docman/Document.class.php
index 9e5fc9a..7a00106 100644
--- a/src/common/docman/Document.class.php
+++ b/src/common/docman/Document.class.php
@@ -309,7 +309,9 @@ class Document extends FFError {
 	 * @return	string	The description.
 	 */
 	function getDescription() {
-		return $this->data_array['description'];
+		$result = util_gen_cross_ref($this->data_array['description'], $this->Group->getID());
+		$result = nl2br($result);
+		return $result;
 	}
 
 	/**

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

Summary of changes:
 src/CHANGES                          | 1 +
 src/common/docman/Document.class.php | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list