[opw-web] view_participants: fix bug in showing Application vs. Intern
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [opw-web] view_participants: fix bug in showing Application vs. Intern
- Date: Tue, 16 Jun 2015 14:26:46 +0000 (UTC)
commit 7f3b6f9ba0213b0bbcd1a1517a697dd5f46ada79
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Tue Jun 16 10:25:32 2015 -0400
view_participants: fix bug in showing Application vs. Intern
Intern was shown for all participants with projects, but should only
have been shown for participants with *accepted* projects.
modules/mod_view_participants.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/modules/mod_view_participants.php b/modules/mod_view_participants.php
index 263f876..77cf7d1 100644
--- a/modules/mod_view_participants.php
+++ b/modules/mod_view_participants.php
@@ -79,7 +79,7 @@ foreach ($list_data as $row)
$list[] = array(
'username' => $row['username'],
'profile' => $user->profile($row['username'], true, $row['fullname']),
- 'role' => get_role_string($row['role'], $row['project_id'] != null),
+ 'role' => $row['role'],
'projects' => $project,
'any_accepted' => $row['is_accepted'] == 1,
'contract_approved' => $row['contract_approved'],
@@ -111,7 +111,7 @@ foreach ($list as $item)
// Assign data for each mentor
$skin->assign(array(
'participant' => $item['profile'],
- 'role' => $item['role'],
+ 'role' => get_role_string($item['role'], $item['any_accepted']),
'contract_approved' => $contract_approved,
'projects' => $item['projects'],
));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]