[open-ils-commits] [GIT] Evergreen ILS branch master updated. 7387ce9cfd181173f64b265e9ec13815d487271c

Evergreen Git git at git.evergreen-ils.org
Tue Jan 10 11:42:25 EST 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  7387ce9cfd181173f64b265e9ec13815d487271c (commit)
      from  a2b7721969e23bcdbf0841473e533bcbc40f6934 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7387ce9cfd181173f64b265e9ec13815d487271c
Author: James Fournie <jfournie at sitka.bclibraries.ca>
Date:   Tue Nov 15 16:56:16 2011 -0800

    Making the user profile selector disabled rather than readonly
    in the case of a user editing their own account.  This prevents
    a nasty bug whereby Dojo widgets with the readOnly flag set
    become labels and therefore do not correctly hold a 'value'
    like a normal form widget.  See LP#806625 for details.
    
    Signed-off-by: James Fournie <jfournie at sitka.bclibraries.ca>
    Signed-off-by: Mike Rylander <mrylander at gmail.com>

diff --git a/Open-ILS/web/js/ui/default/actor/user/register.js b/Open-ILS/web/js/ui/default/actor/user/register.js
index fffe460..f30a3b2 100644
--- a/Open-ILS/web/js/ui/default/actor/user/register.js
+++ b/Open-ILS/web/js/ui/default/actor/user/register.js
@@ -909,8 +909,6 @@ function fleshFMRow(row, fmcls, args) {
         // not overwritten when the profile groups arrive and update
         wargs.forceSync = true;
         wargs.disableQuery = {usergroup : 'f'};
-        if(!patron.isnew() && !checkGrpAppPerm(patron.profile()))
-            wargs.readOnly = true;
     } else {
         wargs.forceSync = false;
     }
@@ -923,7 +921,12 @@ function fleshFMRow(row, fmcls, args) {
     var widget = new openils.widget.AutoFieldWidget(wargs);
     widget.build(
         function(w, ww) {
-            if(fmfield == 'profile') { trimGrpTree(ww); }
+            if(fmfield == 'profile') {
+                trimGrpTree(ww);
+                if(!patron.isnew() && !checkGrpAppPerm(patron.profile())){
+                    w.attr('disabled', true);
+                }
+            }
         }
     );
 

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/web/js/ui/default/actor/user/register.js |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list