[opw-web] Add missing program ID's in URLs when editing organizations
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [opw-web] Add missing program ID's in URLs when editing organizations
- Date: Wed, 19 Mar 2014 14:34:52 +0000 (UTC)
commit 0be2371744f85ad114a498aa2fc200e6db607a8a
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Tue Mar 18 11:18:47 2014 -0400
Add missing program ID's in URLs when editing organizations
modules/mod_manage_organizations.php | 4 ++--
.../html/tpl_manage_organizations_item.html | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/modules/mod_manage_organizations.php b/modules/mod_manage_organizations.php
index 03a07c3..4cb6929 100644
--- a/modules/mod_manage_organizations.php
+++ b/modules/mod_manage_organizations.php
@@ -134,7 +134,7 @@ else if ($action == 'editor')
'error_visibility' => $skin->visibility(isset($error_message)),
'delete_visibility' => $skin->visibility($id > 0),
'cancel_url' => "?q=manage_organizations&prg={$program_id}",
- 'delete_url' => "?q=manage_organizations&a=delete&o={$id}",
+ 'delete_url' => "?q=manage_organizations&a=delete&prg={$program_id}&o={$id}",
));
// Output the module
@@ -177,7 +177,7 @@ else if ($action == 'delete')
$skin->assign(array(
'message_title' => $lang->get('confirm_deletion'),
'message_body' => $lang->get('confirm_organization_del'),
- 'cancel_url' => "?q=manage_organizations&a=editor&o={$id}",
+ 'cancel_url' => "?q=manage_organizations&a=editor&prg={$program_id}&o={$id}",
));
// Output the module
diff --git a/skins/easterngreen/html/tpl_manage_organizations_item.html
b/skins/easterngreen/html/tpl_manage_organizations_item.html
index 3a0d3e0..9082473 100644
--- a/skins/easterngreen/html/tpl_manage_organizations_item.html
+++ b/skins/easterngreen/html/tpl_manage_organizations_item.html
@@ -4,7 +4,7 @@
</td>
<td class="align-center">
- <a href="?q=manage_organizations&a=editor&o=[[organization_id]]">
+ <a href="?q=manage_organizations&a=editor&prg=[[program_id]]&o=[[organization_id]]">
<i class="icon-pencil"></i>
</a>
</td>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]