Ignore:
Timestamp:
Aug 9, 2018, 8:40:57 AM (4 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/my_base/user/settings.jsp

    r7499 r7501  
    8181      public Object convert(ExtendedProperty ep)
    8282      {
     83        if (ep.isRestrictedEdit()) return null;
    8384        JSONObject json = new JSONObject();
    8485        json.put("name", ep.getName());
     
    298299                  ><label for="<%=fieldName%>.true">true</label>
    299300                <input type="radio" <%=isDisabled%> name="<%=fieldName%>" id="<%=fieldName%>.false" value="false"
    300                   <%=b != null && b == false ? "checked" : ""%>
     301                  <%=b != null && b == false || required && b == null ? "checked" : ""%>
    301302                  ><label for="<%=fieldName%>.false">false</label>
    302303                <%
Note: See TracChangeset for help on using the changeset viewer.