Ignore:
Timestamp:
Aug 9, 2018, 8:40:57 AM (5 years ago)
Author:
Nicklas Nordborg
Message:

References #2127: Boolean extended properties are not disabled when the restricted-edit is enabled

There was a remaining problem with disabled properties being validated when saving the form. In case of an error there there was no way to fix it.

Also fixes an issue with null values when a property is required by checking the 'false' option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/admin/users/edit_user.jsp

    r7496 r7501  
    616616                  <input type="radio" name="<%=fieldName%>" id="<%=fieldName%>.true" value="true"
    617617                    <%=b != null && b == true ? "checked" : ""%>
    618                     ><label for="<%=fieldName%>.true">true</label><br>
     618                    ><label for="<%=fieldName%>.true">true</label>
    619619                  <input type="radio" name="<%=fieldName%>" id="<%=fieldName%>.false" value="false"
    620                     <%=b != null && b == false ? "checked" : ""%>
     620                    <%=b != null && b == false || required && b == null ? "checked" : ""%>
    621621                    ><label for="<%=fieldName%>.false">false</label>
    622622                  <%
Note: See TracChangeset for help on using the changeset viewer.