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

Liferay Popup displays " " in modal-title if no title is defined

    Description

    Reproduction steps:
    1) Start a master bundle
    2) Open up the browser's console with F12 (no need to login into Liferay)
    3) Paste this snippet and hit enter:

    Liferay.Util.openWindow({
        dialog: {
            modal: true,
            width: 500,
            centered: true,
            draggable: false,
            resizable: false,
            cssClass: 'classRed',
            bodyContent: 'Test dialog box'
        },
        id: 'confirmationDialogId'
    });
    

    4) A pop-up will open. Observe the top part where the title usually appears:

    Expected:
    No title to appear

    Actual behavior:

    " "

    will be displayed as a title

      Attachments

        Activity

          People

          Assignee:
          summer.zhang Summer Zhang
          Reporter:
          roland.pakai Roland Pákai
          Participants of an Issue:
          Recent user:
          Sophia Zhang
          Engineering Assignee:
          Roland Pákai
          Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

            Dates

            Created:
            Updated:
            Resolved:
            Days since last comment:
            51 weeks, 6 days ago

              Packages

              Version Package
              7.0.0 DXP FP102
              7.0.10.16 DXP SP17
              7.0.X
              7.1.10 DXP FP21
              7.1.X
              7.2.10 DXP FP11
              7.2.10.4 DXP SP4
              7.2.X
              7.3.10 DXP FP1
              7.3.10.1 DXP SP1
              7.3.6 CE GA7
              7.3.X
              7.4.13 DXP GA1
              Master