[opw-web] manage_projects: fix links



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&amp;prg={$program_id}&amp;p={$row['id']}",
+        'opinion_select'        => build_opinion_select($row['org_opinion'], 'opinion' . $project_id, 
!$can_edit),
+        'project_url'           => "?q=view_projects&amp;prg={$program_id}&amp;p={$project_id}",
         'approve_url'           => "?q=view_projects&amp;a=approve&amp;prg={$program_id}" .
-                                   "&amp;p={$row['id']}&amp;r={$return_url}",
+                                   "&amp;p={$project_id}&amp;r={$return_url}",
         'reject_url'            => "?q=view_projects&amp;a=reject&amp;prg={$program_id}" .
-                                   "&amp;p={$row['id']}&amp;r={$return_url}",
+                                   "&amp;p={$project_id}&amp;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]