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

Can not preview nested field after upgrading

    Details

      Description

      Steps to reproduce:

      1. In 73, add a structure with number field
      2. Add another number field in it
      3. Add a template to the created structure
      4. Click the 2 number fields from ddm template editor to add them
      5. Add a web content using the created structure and template
      6. Add number to each number field
      7. Upgrade to master using upgrade tools
      8. Go to Content&Data > Web Cotent
      9. Click ellipsis of web content, click Preview

      Actual result:
      An error occurred while processing the template.

      An error occurred while processing the template.
      The following has evaluated to null or missing:
      ==> Number1qtc  [in template "20097#20123#37273" at line 1, column 3]
      
      ----
      Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
      ----
      
      ----
      FTL stack trace ("~" means nesting-related):
      	- Failed at: ${Number1qtc.getData()}  [in template "20097#20123#37273" at line 1, column 1]
      ----
      1${Number1qtc.getData()} 
      2${Number1qtc.Number1787.getData()} 

      Expected result:
      Able to preview nested fields after upgrading.

        Attachments

        1. 73-before-upgrade.PNG
          73-before-upgrade.PNG
          17 kB
        2. master-upgrade.PNG
          master-upgrade.PNG
          51 kB
        3. test3.sql
          2.53 MB

          Activity

            People

            Assignee:
            yang.cao Yang Cao
            Reporter:
            lu.liu Lu Liu
            Participants of an Issue:
            Recent user:
            Rafaela Nascimento
            Engineering Assignee:
            Eudaldo Alonso
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              8 weeks, 3 days ago

                Packages

                Version Package
                7.4.0 CE GA1
                Master