Revision: 1265
http://mrbs.svn.sourceforge.net/mrbs/?rev=1265&view=rev
Author: cimorrison
Date: 2009-11-13 21:49:27 +0000 (Fri, 13 Nov 2009)
Log Message:
-----------
Merged with latest fix from the trunk (ie fixing the bug that prevented users
being edited)
Modified Paths:
--------------
mrbs/branches/provisional_bookings/web/edit_users.php
Modified: mrbs/branches/provisional_bookings/web/edit_users.php
===================================================================
--- mrbs/branches/provisional_bookings/web/edit_users.php 2009-11-13
21:09:48 UTC (rev 1264)
+++ mrbs/branches/provisional_bookings/web/edit_users.php 2009-11-13
21:49:27 UTC (rev 1265)
@@ -371,6 +371,13 @@
$q_string = ($Id >= 0) ? "Action=Edit" : "Action=Add";
foreach ($fields as $fieldname)
{
+ if ($fieldname == 'id')
+ {
+ // id: don't need to do anything except add the id to the query string;
+ // the field itself is auto-incremented
+ $q_string .= "&Id=$Id";
+ continue;
+ }
// first, get all the form variables and put them into an array,
$values, which
// we will use for entering into the database assuming we pass validation
$values[$fieldname] = get_form_var("Field_$fieldname",
$field_props[$fieldname]['type']);
@@ -388,10 +395,6 @@
switch ($fieldname)
{
// some of the fields get special treatment
- case 'id':
- // id: don't need to do anything except add the id to the query
string
- $q_string .= "&Id=$Id";
- break;
case 'name':
// name: convert it to lower case
$q_string .= "&$fieldname=" . urlencode($values[$fieldname]);
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