[open-ils-commits] r8524 - trunk/Open-ILS/web/opac/skin/default/js
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Jan 28 22:38:11 EST 2008
Author: dbs
Date: 2008-01-28 22:10:55 -0500 (Mon, 28 Jan 2008)
New Revision: 8524
Modified:
trunk/Open-ILS/web/opac/skin/default/js/myopac.js
Log:
Correct logic error that prevented users from changing their usernames
(res = '0' because the username isn't found, but '0' != their user ID so it was always failing)
Modified: trunk/Open-ILS/web/opac/skin/default/js/myopac.js
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/js/myopac.js 2008-01-28 23:20:29 UTC (rev 8523)
+++ trunk/Open-ILS/web/opac/skin/default/js/myopac.js 2008-01-29 03:10:55 UTC (rev 8524)
@@ -859,7 +859,7 @@
var req = new Request(CHECK_USERNAME, G.user.session, username);
req.send(true);
var res = req.result();
- if( res && res != G.user.id() ) {
+ if( res && res == G.user.id() ) {
alertId('myopac_username_dup');
return;
}
More information about the open-ils-commits
mailing list