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 07f53536ccc21129e12af46eda9e5ed87f15f250 (commit)
from 079de957ed370bba7783414aff6e795d005ed453 (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=07f53536ccc21129e12af46eda9e5ed87f15f250
commit 07f53536ccc21129e12af46eda9e5ed87f15f250
Author: Franck Villaume <[email protected]>
Date: Sun Dec 18 21:49:59 2016 +0100
use util_display_user to render username in comment list
diff --git a/src/common/docman/DocumentReview.class.php
b/src/common/docman/DocumentReview.class.php
index b948ce2..28262ec 100644
--- a/src/common/docman/DocumentReview.class.php
+++ b/src/common/docman/DocumentReview.class.php
@@ -365,7 +365,7 @@ class DocumentReview extends FFError {
foreach ($comments as $comment) {
$cells = array();
$cells[][] =
strftime(_('%Y-%m-%d'),$comment->getCreateDate());
- $cells[][] = $comment->getPosterRealName();
+ $cells[][] =
util_display_user($comment->getPosterUnixName(), $comment->getPosterID(),
$comment->getPosterRealName());
$cells[][] = $comment->getReviewComment();
$cells[][] = $comment->getAttachment();
$return .= $HTML->multiTableRow(array(),
$cells);
diff --git a/src/common/docman/DocumentReviewComment.class.php
b/src/common/docman/DocumentReviewComment.class.php
index 83b56af..3c34cc2 100644
--- a/src/common/docman/DocumentReviewComment.class.php
+++ b/src/common/docman/DocumentReviewComment.class.php
@@ -73,6 +73,11 @@ class DocumentReviewComment extends FFError {
return $userObject->getRealName();
}
+ function getPosterUnixName() {
+ $userObject = user_get_object($this->getPosterID());
+ return $userObject->getUnixName();
+ }
+
function getReviewComment() {
$result = util_gen_cross_ref($this->data_array['rcomment'],
$this->DocumentReview->Document->Group->getID());
$result = nl2br($result);
-----------------------------------------------------------------------
Summary of changes:
src/common/docman/DocumentReview.class.php | 2 +-
src/common/docman/DocumentReviewComment.class.php | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits