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

The same id is used for every page options icon under Public Pages

    Details

      Description

      1. Create a vanilla DXP with de-55-7010
      2. Login as admin
      3. On the 'Welcome' page create 4 public pages (not necessarily four, I just used 4 to be sure)
      4. Reload the 'Welcome' page
      5. In the browser's console run the following and it will tell wether duplicate id is found or not:
      javascript:(function () { 
      var ids = {}; 
      var found = false; 
      $('[id]').each(function() { 
      if (this.id && ids[this.id]) { 
      found = true; 
      console.warn('Duplicate ID #'+this.id); 
      } 
      ids[this.id] = 1; 
      }); 
      if (!found) console.log('No duplicate IDs found'); 
      })();

      Alternatively you can inspect the icon element (3dots next to the page name), and the id is available on the span element:

      <span id="rboe__null__null">
       <svg class="lexicon-icon lexicon-icon-ellipsis-v" focusable="false" role="img" title="" viewBox="0 0 512 512"><title>ellipsis-v</title>
        <path class="lexicon-icon-outline" d="M319 255.5c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-35.346 28.654-64 64-64s64 28.654 64 64z"></path>
        <path class="lexicon-icon-outline" d="M319 448c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-35.346 28.654-64 64-64s64 28.654 64 64z"></path>
        <path class="lexicon-icon-outline" d="M319 64c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-35.346 28.654-64 64-64s64 28.654 64 64z"></path>
       </svg>
      </span>

      Expected results:
      Every listed public page icon has got a unique ID

      Actual results:
      Every listed public page icon has got the same ID.

      Reproduced on 7.0.x Commit: ec34e8c4ccc55a9a8c3c20706cdedabeed464deb
       Not reproduced on Master: Commit: 4b4bd981f0081b96c012c90a9bdca93d9e100159

        Attachments

          Activity

            People

            • Assignee:
              summer.zhang Summer Zhang
              Reporter:
              norbert.nemeth Norbert Németh
              Participants of an Issue:
              Recent user:
              Clarissa Velazquez
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

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