From 658123a2328867a87da59ca660a7044d99eea22c Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sat, 16 Aug 2014 17:53:07 -0700 Subject: The fullname is displayed instead of the username if not empty --- app/Model/Comment.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'app/Model/Comment.php') diff --git a/app/Model/Comment.php b/app/Model/Comment.php index b849fc23..43c275bc 100644 --- a/app/Model/Comment.php +++ b/app/Model/Comment.php @@ -45,7 +45,8 @@ class Comment extends Base self::TABLE.'.task_id', self::TABLE.'.user_id', self::TABLE.'.comment', - User::TABLE.'.username' + User::TABLE.'.username', + User::TABLE.'.name' ) ->join(User::TABLE, 'id', 'user_id') ->orderBy(self::TABLE.'.date', 'ASC') @@ -70,7 +71,8 @@ class Comment extends Base self::TABLE.'.user_id', self::TABLE.'.date', self::TABLE.'.comment', - User::TABLE.'.username' + User::TABLE.'.username', + User::TABLE.'.name' ) ->join(User::TABLE, 'id', 'user_id') ->eq(self::TABLE.'.id', $comment_id) -- cgit v1.2.3