Skip to content

Commit

Permalink
Dev: Echo shared by everybody
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Sep 28, 2016
1 parent 02853e3 commit d63c630
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion application/models/ParticipantShare.php
Expand Up @@ -103,6 +103,20 @@ public function getSharedByList($selected){

}

/**
* @return string
*/
public function getSharedBy()
{
Yii::log(print_r($this->shared_by, true), CLogger::LEVEL_TRACE, 'debug');
if ($this->share_uid == -1) {
return gT('Everybody');
}
else {
return $this->shared_by['full_name'];
}
}

/**
* @return string HTML
*/
Expand Down Expand Up @@ -208,7 +222,7 @@ public function getColumns(){
),
array(
"name" => 'share_uid',
"value" => '$data->shared_by[\'full_name\']',
"value" => '$data->sharedBy',
"header" => gT("Shared By"),
"filter" => $this->getSharedByList($this->share_uid)
),
Expand Down

0 comments on commit d63c630

Please sign in to comment.