fixed bug in profile editing when user does not have perm to edit that profile
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 10 Aug 2006 19:56:29 +0000 (19:56 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 10 Aug 2006 19:56:29 +0000 (19:56 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5431 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/ue.js
Open-ILS/xul/staff_client/server/patron/ue.xhtml

index f79c80a..21a255f 100644 (file)
@@ -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) { 
index 404c1d5..d896766 100644 (file)
                                                                                <td>
                                                                                        <div class='wide left'>
                                                                                                <select id='ue_profile' class='select_big'>
-                                                                                                       <option> -- Required -- </option>
+                                                                                                       <option value=''> -- Required -- </option>
                                                                                                </select>
                                                                                        </div>
                                                                                </td>