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

Relationship is not working properly between objects with different scopes depending on where the object scoped by company is placed

Description

     Description

    Relationship is not working properly between objects with different scopes depending on where the object scoped by company is placed

     Steps to Reproduce

    1. Go to Control Panel >  Objects
    2. Add an object called CustomTicket
      1. Add a field called Description (type String)
      2. Set the Title Field to Description
      3. Set the Scope to Site
      4. Set the Panel Category Key to Content & Data
      5. Publish
    3. Add a second object called CustomUser
    4. Go back to CustomTicket
      1. Add a relationship (one to many) with CustomUser
    5. Go back to CustomUser
      1. Set the Scope to Company
      2. Set the Panel Category Key to Control Panel > Users 
      3. Publish
    6. Go to Content & Data > CustomTicket > Add Entry
      1. Fill the Description field and Save 
    7. Go to Control Panel > Users > CustomUser > Add Entry
      1. Try to fill the relationship field

     Expected Result
    The relationship field should autocomplete with the possible entries

     Actual Result
    No entries are shown in the relationship field

     Depending on the option selected on step 5.2 is what will make the bug. For example, for the following options the bug will not happen:

    • Control Panel > Accounts
    • Control Panel > Object

    However, for other options the bug will happen, like:

    • Control Panel > Users
    • Control Panel > Sites

     Reproduced In master: 
    29e67c44d338be860c2c25a0715ec37b6a2436df

    Attachments

      Issue Links

        Activity

          People

            murilo.stodolni Murilo Stodolni
            carolina.barbosa Carolina Barbosa
            Liferay JIRA Bot Liferay JIRA Bot
            Murilo Stodolni Murilo Stodolni
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              8 weeks, 5 days ago

              Packages

                Version Package