You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Nicolas Malin (Jira)" <ji...@apache.org> on 2022/02/01 15:44:00 UTC

[jira] [Created] (OFBIZ-12555) default-field-type hidden doesn't works for auto-fields-service

Nicolas Malin created OFBIZ-12555:
-------------------------------------

             Summary:  default-field-type hidden doesn't works for auto-fields-service
                 Key: OFBIZ-12555
                 URL: https://issues.apache.org/jira/browse/OFBIZ-12555
             Project: OFBiz
          Issue Type: Bug
          Components: framework/widget
    Affects Versions: 22.01.01, Upcoming Branch
            Reporter: Nicolas Malin
            Assignee: Nicolas Malin


When you define a widget form and wish populate hidden fields with the element auto-fields-service, OFBiz rendering each as edit field type.

    <form name="ListPartyQuals" ...>
        <auto-fields-service service-name="updatePartyQual" default-field-type="hiddens"/>

   </form>

The problem came from the function ModelFormFieldBuilder.induceFieldInfoFromServiceParam didn't manage the case "hidden"

By the way, this function is a "if" forest, and simplify reading.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)