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

Fragment second configuration doesn't check the first configuration

    Description

    Stept to reproduce:

    1. Add a fragment with the following configuration
      html:
      <div class="fragment-configuration">
      	[#if configuration.hideBody != true]
      		<h3>Body Present!!</h3>
      	[/#if]
      
      	[#if configuration.makeBold == true]
      		<b>Bold Words</b>
      	[#else]
      		<p>Not bold words</p>
      	[/#if]
      </div>

      json:

      {
      	"fieldSets": [
      		{
      			"fields": [
      				{
      					"name": "hideBody",
      					"label": "Hide Body",
      					"description": "hide-body",
      					"type": "checkbox",
      					"defaultValue": false
      				},
      				{
      					"name": "makeBold",
      					"label": "Make Bold",
      					"type": "checkbox",
      					"defaultValue": false
      				}
      			]
      		}
      	]
      }
    2. Add the fragment to content page
    3. Click fragment filed
    4. Click configuration
    5. Check Hide Body
    6. Assert "Body Present!!" doesn't display
    7. Check Make Bold
    8. Aseert "Bold Words" displays and "Body Present!!" doesn't display

    Actual result:
    "Bold Words" display and "Body Present!!" display.

    Expected result:
    "Bold Words" displays and "Body Present!!" doesn't display.

      Attachments

        Issue Links

          Activity

            People

            Assignee:
            lu.liu Lu Liu
            Reporter:
            lu.liu Lu Liu
            Participants of an Issue:
            Recent user:
            Jason Pince
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              46 weeks, 4 days ago

                Packages

                Version Package
                7.3.0 CE GA1
                7.3.10 DXP GA1
                Master