Scheduled publish not working for multilingual website.

Created on 4 August 2024, 5 months ago
Updated 10 September 2024, 4 months ago

Problem/Motivation

Scheduled publish not working for multilingual website.

Schedule moderation state change for node with Finish translation (any language other than default), run cron

src/Service/ScheduledPublishCron.php:173

    $scheduledEntity = $entity->get($scheduledField);
    $scheduledValue = $scheduledEntity->getValue();
    if (empty($scheduledValue)) {
      return;
    }

The $scheduledEntity is always site's default language, instead of the translation for which we have scheduled.

Feature request
Status

Needs work

Version

3.10

Component

Code

Created by

🇦🇲Armenia norsargsyan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @norsargsyan
  • Pipeline finished with Success
    5 months ago
    Total: 193s
    #243833
  • 🇦🇲Armenia norsargsyan

    I added a loop through all of the languages

  • 🇮🇪Ireland lostcarpark

    @norsargsyan This looks good, but you've added a MR and a patch that seem to be slightly different. Are both required, or does one supercede the other? Could you merge all changes into the MR?

    I would like to have test coverage on this change if possible. Would you be able to help write a test, or at least outline the steps a test should include?

    I want to get a D11 release as soon as possible. I will aim for a follow-up release to include this as soon as possible after a D11 release.

  • Status changed to Needs work 4 months ago
  • 🇦🇲Armenia norsargsyan

    @lostcarpack thanks for the review, the MR has the last code

    I would not be able to help with test coverage, but I can provide the test steps to reproduce the problem

    • Schedule moderation state change for content in a language other than a default language
    • Run the cron
Production build 0.71.5 2024