Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-132090

Custom option label is been overridden by component

    Details

      Description

      STEPS TO REPRODUCE

      1. Create a new Structure
      2. Add the Select field to the structure, leave all the options with defaults
      3. Save the structure 
      4. Create a new web content item with the structure type
      5. Notice that the select field has a blank option, and then option1,2,3
      6. Deploy the customizations attached to this ticket 
      7. Once the modules are active, refresh the screen

      EXPECTED RESULTS

      The select field will render the label for the blank option: "Choose an Option". The other options that were configured when the structure was created will be rendered below. 

      ACTUAL RESULTS

      The first option continues to have a "blank" label. The other options that were configured is rendered below.

      OVERRIDE SOLUTION

      1. JSP Fragment used to add an Export-Package statement to expose com.liferay.dynamic.data.mapping.internal.render
      2. Service override module used to extend the DDMFormFieldFreeMarkerRenderer and override a couple of methods used to change the behaviour. 

        Attachments

          Activity

            People

            Assignee:
            emanuel.silva Emanuel Silva
            Reporter:
            marcela.cunha Marcela Cunha
            Participants of an Issue:
            Recent user:
            Clarissa Velazquez
            Engineering Assignee:
            Carlos Henrique de Oliveira (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              23 weeks ago

                Packages

                Version Package
                7.3.7 CE GA8
                7.3.10 DXP FP2
                7.3.X