From: dbs Date: Tue, 29 Jan 2008 03:10:55 +0000 (+0000) Subject: Correct logic error that prevented users from changing their usernames X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1e21346a9f873206766c79f72db435b3d362bfaf;p=Evergreen.git 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) git-svn-id: svn://svn.open-ils.org/ILS/trunk@8524 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/skin/default/js/myopac.js b/Open-ILS/web/opac/skin/default/js/myopac.js index 362834aa3c..0e5b49ff46 100644 --- a/Open-ILS/web/opac/skin/default/js/myopac.js +++ b/Open-ILS/web/opac/skin/default/js/myopac.js @@ -859,7 +859,7 @@ function myOPACUpdateUsername() { 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; }