[opw-web] Fix bugs with resigning as student
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [opw-web] Fix bugs with resigning as student
- Date: Fri, 21 Mar 2014 13:38:46 +0000 (UTC)
commit 70d1b8a882a5557005db9e19a416b5481ad8a612
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Fri Mar 21 09:37:44 2014 -0400
Fix bugs with resigning as student
Fix a couple of typos - the "mark projects withdrawn" code path hadn't
been tested.
modules/mod_view_projects.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/modules/mod_view_projects.php b/modules/mod_view_projects.php
index 30c9beb..9c45792 100644
--- a/modules/mod_view_projects.php
+++ b/modules/mod_view_projects.php
@@ -1041,7 +1041,7 @@ else if ($action == 'resign')
} else {
$sql = "UPDATE {$db->prefix}projects " .
"SET is_withdrawn = 1 " .
- "WHERE project_id IN ({$projects})";
+ "WHERE id IN ({$projects})";
$db->query($sql);
}
}
@@ -1063,7 +1063,7 @@ else if ($action == 'resign')
// Assign confirm box data
$skin->assign(array(
'message_title' => $lang->get('confirm_resign'),
- 'message_body' => $delete_applications ?
+ 'message_body' => $delete_projects ?
$lang->get('confirm_resign_exp_delete') :
$lang->get('confirm_resign_exp_withdraw'),
'cancel_url' => "?q=program_home&prg={$program_id}",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]