From: erickson Date: Thu, 10 Aug 2006 19:56:29 +0000 (+0000) Subject: fixed bug in profile editing when user does not have perm to edit that profile X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1b5fadf8e7fff76ffde2089d20565235a282bd8e;p=evergreen%2Fpines.git fixed bug in profile editing when user does not have perm to edit that profile git-svn-id: svn://svn.open-ils.org/ILS/trunk@5431 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/patron/ue.js b/Open-ILS/xul/staff_client/server/patron/ue.js index f79c80acd9..21a255f53a 100644 --- a/Open-ILS/xul/staff_client/server/patron/ue.js +++ b/Open-ILS/xul/staff_client/server/patron/ue.js @@ -131,6 +131,10 @@ function uEditCheckEditPerm() { var node = $('ue_profile').parentNode; node.removeChild($('ue_profile')); node.appendChild(elem('span',null,groupsCache[patron.profile()].name())); + + var field = uEditFindFieldByKey('profile'); + field.required = false; + uEditCheckErrors(); } @@ -329,6 +333,7 @@ function uEditOnChange(field) { function uEditCheckValid(field) { var newval = uEditNodeVal(field); + if(newval) { if(field.widget.regex) { diff --git a/Open-ILS/xul/staff_client/server/patron/ue.xhtml b/Open-ILS/xul/staff_client/server/patron/ue.xhtml index 404c1d5a34..d896766958 100644 --- a/Open-ILS/xul/staff_client/server/patron/ue.xhtml +++ b/Open-ILS/xul/staff_client/server/patron/ue.xhtml @@ -574,7 +574,7 @@