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

The localized value of text type localizable configuration field will be populated in default language

    Details

      Description

      Step to reproduce:

      1. Add a fragment with the following codes
        <div class="fragment-example">
        	<button type="button" class="btn btn-primary">${configuration.buttonText}</button>
        </div>
        
        .fragment-example {
        }
        
        {
        	"fieldSets": [
        		{
        			"label": "Button",
        			"fields": [
        				{
        					"dataType": "string",
        					"defaultValue": "Go Somewhere",
        					"label": "Button Text",
        					"localizable": true,
        					"name": "buttonText",
        					"type": "text"
        				}
        			]
        		}
        	]
        }
        
      2. Publish
      3. Add a page based on Blank
      4. Add the new fragment to Page
      5. Click the body of fragment
      6. Change to es_ES via language selector on control menu
      7. Type Ir a alguna parte in Button Text field
      8. Click outside of field to trigger draft saved
      9. Change to en_US via language selector on control menu
      10. Assert the Go Somewhere is shown in fragment

      Expected Results:
      The Go Somewhere should be shown in Button Text field.

      Actual Results:
      The Ir a alguna parte is shown in Button Text field.

      Reproduced on:
      Tomcat 9.0.37 + MySQL 5.7. Portal master GIT ID: 6f7122e4b72383c34dc0852e980da01b43956dce.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yang.cao Yang Cao
              Reporter:
              yang.cao Yang Cao
              Participants of an Issue:
              Recent user:
              Yang Cao
              Engineering Assignee:
              Victor Galan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  Master