Revision: 1064
http://mrbs.svn.sourceforge.net/mrbs/?rev=1064&view=rev
Author: cimorrison
Date: 2009-03-23 18:26:31 +0000 (Mon, 23 Mar 2009)
Log Message:
-----------
Fixed bug which prevented ordinary users editing their own details when using
'db' authentication.
Modified Paths:
--------------
mrbs/trunk/web/edit_users.php
Modified: mrbs/trunk/web/edit_users.php
===================================================================
--- mrbs/trunk/web/edit_users.php 2009-03-22 23:11:25 UTC (rev 1063)
+++ mrbs/trunk/web/edit_users.php 2009-03-23 18:26:31 UTC (rev 1064)
@@ -311,6 +311,11 @@
echo ("<input id=\"$html_fieldname\" name=\"$html_fieldname\"
type=\"text\" " .
(($level < $min_user_editing_level) ?
"disabled=\"disabled\" " : "") .
"value=\"" . htmlspecialchars($data[$fieldname]) .
"\">\n");
+ // if the field was disabled then we still need to pass
through the value as a hidden input
+ if ($level < $min_user_editing_level)
+ {
+ echo "<input type=\"hidden\" name=\"Field_$fieldname\"
value=\"" . $data[$fieldname] . "\">\n";
+ }
echo ("</div>\n");
break;
default:
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits