Skip to content

Commit

Permalink
Append chair info to person stats
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar committed Aug 3, 2024
1 parent 557bcc1 commit 9eeee50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Controllers/Statistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ private function getCommitteeStatistics($committee) {
foreach ($committee as $c) {
$row = array(
linkCompetitionInfo($c['Competition'], $c['CompetitionName']),
getCommitteeTitle($c['Role']),
getCommitteeTitle($c['Role'], $c['Chair'] == 'Y'),
);
$table->addRow($row);
$rowCount++;
Expand Down
4 changes: 2 additions & 2 deletions app/Helpers/committee_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ function getCommitteeTitles() {
return COMMITTEE_TITLES;
}

function getCommitteeTitle($role) {
return COMMITTEE_TITLES[$role];
function getCommitteeTitle($role, $isChair) {
return COMMITTEE_TITLES[$role] . ($isChair ? ' (Ketua)' : '');
}

function getCommitteeRoles() {
Expand Down

0 comments on commit 9eeee50

Please sign in to comment.