Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-6631

Scheduled entries are not deleted when deleting parent content

    XMLWordPrintable

Details

    • Ibexa Experience
    • Yes

    Description

      Steps to reproduce:

      1. Create a new article. Schedule it to be hidden in the distant future.
      2. Run the ibexa:scheduled:run command to confirm that Total scheduled for hide: 1.
      3. Move the article to trash.
      4. Run ibexa:scheduled:run to confirm that Total scheduled for hide: 0.
      5. Create a folder.
      6. Create a new article in the folder. Schedule it to be hidden in a minute.
      7. Move the folder to the trash so that the article is also trashed.
      8. Run the ibexa:scheduled:run command to confirm that Total scheduled for hide: 1 if the hiding time has not passed yet.

      Result:
      If the hiding time has passed and the ibexa:scheduled:run command is executed, an exception is thrown:

      Ibexa\Contracts\Core\Limitation\Target\DestinationLocation::__construct(): Argument #1 ($locationId) must be of type int, null given, called in /.../vendor/ibexa/core/src/lib/Repository/ContentService.php on line 2458

      Expected result:
      Scheduled entries should be deleted after removing their parent content. When running the ibexa:scheduled:run command there should be no scheduled entries present.

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              bartlomiej.wajda@ibexa.co Bartłomiej Wajda
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: