Revision: 1266
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1266&view=rev
Author:   cimorrison
Date:     2009-11-13 23:40:48 +0000 (Fri, 13 Nov 2009)

Log Message:
-----------
Moved the id and series parameters into a query string for forms that call 
view_entry.  That's because some pages called by view_entry use HTTP_REFERER to 
form a return URL, and view_entry needs to have a valid id and series passed to 
it.

Modified Paths:
--------------
    mrbs/branches/provisional_bookings/web/pending.php

Modified: mrbs/branches/provisional_bookings/web/pending.php
===================================================================
--- mrbs/branches/provisional_bookings/web/pending.php  2009-11-13 21:49:27 UTC 
(rev 1265)
+++ mrbs/branches/provisional_bookings/web/pending.php  2009-11-13 23:40:48 UTC 
(rev 1266)
@@ -12,6 +12,13 @@
   $returl = $PHP_SELF;
                                     
   $target_id = ($is_series) ? $row['repeat_id'] : $row['id'];
+
+  // When we're going to view_entry.php we need to pass the id and series
+  // in a query string rather than as hidden inputs.   That's because some
+  // pages called by view_entry use HTTP_REFERER to form a return URL, and
+  // view_entry needs to have a valid id.
+  $query_string = "id=$target_id";
+  $query_string .= ($is_series) ? "&series=1" : "";
   
   if (auth_can_confirm($user, $row['room_id']))
   {
@@ -26,21 +33,17 @@
     echo "</div>\n";
     echo "</form>\n";
     // reject
-    echo "<form action=\"view_entry.php\" method=\"post\">\n";
+    echo "<form action=\"view_entry.php?$query_string\" method=\"post\">\n";
     echo "<div>\n";
     echo "<input type=\"hidden\" name=\"action\" value=\"reject\">\n";
-    echo "<input type=\"hidden\" name=\"id\" value=\"$target_id\">\n";
-    echo "<input type=\"hidden\" name=\"series\" value=\"$is_series\">\n";
     echo "<input type=\"hidden\" name=\"returl\" value=\"" . 
htmlspecialchars($returl) . "\">\n";
     echo "<input type=\"submit\" value=\"" . get_vocab("reject") . "\">\n";
     echo "</div>\n";
     echo "</form>\n";
     // more info
-    echo "<form action=\"view_entry.php\" method=\"post\">\n";
+    echo "<form action=\"view_entry.php?$query_string\" method=\"post\">\n";
     echo "<div>\n";
     echo "<input type=\"hidden\" name=\"action\" value=\"more_info\">\n";
-    echo "<input type=\"hidden\" name=\"id\" value=\"$target_id\">\n";
-    echo "<input type=\"hidden\" name=\"series\" value=\"$is_series\">\n";
     echo "<input type=\"hidden\" name=\"returl\" value=\"" . 
htmlspecialchars($returl) . "\">\n";
     echo "<input type=\"submit\" value=\"" . get_vocab("more_info") . "\">\n";
     echo "</div>\n";


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to