[opw-web] manage_projects: fix links
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [opw-web] manage_projects: fix links
- Date: Mon, 10 Mar 2014 22:36:11 +0000 (UTC)
commit f03ce63175c24c838179168b00821fbdd3c16f2a
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Mon Mar 10 18:36:02 2014 -0400
manage_projects: fix links
modules/mod_manage_projects.php | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/modules/mod_manage_projects.php b/modules/mod_manage_projects.php
index 85a0b3b..9005dd4 100644
--- a/modules/mod_manage_projects.php
+++ b/modules/mod_manage_projects.php
@@ -153,19 +153,21 @@ foreach ($list_data as &$row)
else
$ranking = number_format($row['ranking'], 1);
+ $project_id = $row['project_id'];
+
// Assign data for each project
$skin->assign(array(
'project_title' => $project_title,
'project_applicant' => $profile,
'ranking' => $ranking,
- 'ranking_name' => 'ranking' . $row['project_id'],
+ 'ranking_name' => 'ranking' . $project_id,
'disabled' => $can_edit ? '' : ' disabled',
- 'opinion_select' => build_opinion_select($row['org_opinion'], 'opinion' . $row['project_id'],
!$can_edit),
- 'project_url' => "?q=view_projects&prg={$program_id}&p={$row['id']}",
+ 'opinion_select' => build_opinion_select($row['org_opinion'], 'opinion' . $project_id,
!$can_edit),
+ 'project_url' => "?q=view_projects&prg={$program_id}&p={$project_id}",
'approve_url' => "?q=view_projects&a=approve&prg={$program_id}" .
- "&p={$row['id']}&r={$return_url}",
+ "&p={$project_id}&r={$return_url}",
'reject_url' => "?q=view_projects&a=reject&prg={$program_id}" .
- "&p={$row['id']}&r={$return_url}",
+ "&p={$project_id}&r={$return_url}",
));
$projects_list .= $skin->output('tpl_manage_projects_item');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]