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

We should include the field reference for options on upgrade process

    Details

      Description

      Steps to reproduce:

      • Start a 7.3
      • Creates a structure like this
      {
         "availableLanguageIds":[
            "en_US"
         ],
         "successPage":{
            "body":{
               
            },
            "title":{
               
            },
            "enabled":false
         },
         "defaultLanguageId":"en_US",
         "fields":[
            {
               "dataType":"string",
               "predefinedValue":{
                  "en_US":""
               },
               "readOnly":false,
               "label":{
                  "en_US":"Title"
               },
               "type":"text",
               "required":false,
               "showLabel":true,
               "nestedFields":[
                  {
                     "dataType":"date",
                     "predefinedValue":{
                        "en_US":""
                     },
                     "readOnly":false,
                     "label":{
                        "en_US":"Date"
                     },
                     "type":"ddm-date",
                     "required":false,
                     "showLabel":true,
                     "nestedFields":[
                        {
                           "dataType":"string",
                           "predefinedValue":{
                              "en_US":"[\"\"]"
                           },
                           "multiple":false,
                           "readOnly":false,
                           "label":{
                              "en_US":"Status"
                           },
                           "type":"select",
                           "required":false,
                           "showLabel":true,
                           "indexType":"keyword",
                           "repeatable":false,
                           "name":"Status",
                           "options":[
                              {
                                 "label":{
                                    "en_US":"Approve"
                                 },
                                 "value":"approvve"
                              },
                              {
                                 "label":{
                                    "en_US":"Draft"
                                 },
                                 "value":"draft"
                              },
                              {
                                 "label":{
                                    "en_US":"Discard"
                                 },
                                 "value":"discard"
                              }
                           ],
                           "localizable":true,
                           "tip":{
                              "en_US":""
                           }
                        }
                     ],
                     "indexType":"keyword",
                     "fieldNamespace":"ddm",
                     "repeatable":false,
                     "name":"Date2cwb",
                     "localizable":true,
                     "tip":{
                        "en_US":""
                     }
                  }
               ],
               "indexType":"keyword",
               "repeatable":false,
               "name":"Title",
               "localizable":true,
               "tip":{
                  "en_US":""
               }     
            }
         ]
      }
      • Creates a template like this
      <div class="align-items-center d-flex mb-2">
         <p class="component-title h3">${Title.getData()}</p>
      </div>
      
      <div class="autofit-float autofit-padded-no-gutters-x autofit-row autofit-row-center">
         <div class="autofit-col">
             <span class="label label-primary">
                  <span class="c-inner">
                      <span class="label-item label-item-expand">${Title.Date2cwb.Status.getData()}</span>
                  </span>
              </span>
         </div>
      
         <#assign Title_Date2cwb_Data = getterUtil.getString(Title.Date2cwb.getData())>
      
         <#if validator.isNotNull(Title_Date2cwb_Data)>
            <#assign Title_Date2cwb_DateObj = dateUtil.parseDate("yyyy-MM-dd", Title_Date2cwb_Data, locale)>
         
            <div class="autofit-col">
               <div class="text-secondary">
                  <span class="date-info">${dateUtil.getDate(Title_Date2cwb_DateObj, "dd MMM yyyy - HH:mm:ss", locale)}</span>
               </div>
            </div>
         </#if>
      </div>
      • Adds a new web content using the new structure
      • Adds a new page and add a web content display
      • Select the created web content and select the created template
      • Upgrade to latest version

      Actual result:

      You cannot see the web content

      Expected result:

      You can see the web content correctly

       

        Attachments

          Activity

            People

            Assignee:
            yang.cao Yang Cao
            Reporter:
            eudaldo.alonso Eudaldo Alonso
            Participants of an Issue:
            Recent user:
            Brian Wulbern
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

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

                Packages

                Version Package
                7.4.0 CE GA1
                Master