Review 14.0 Merged

92037[BUGFIX] Ensure EXT:scheduler records show interval frequency

Oli Bartsch CR +2 V +2 Easy +1 −1 updated 12/08/25, 08:37

Commit message

The new TCA-based EXT:scheduler allows to set a task's frequency
with a "cronCmd" ("0 9,15 * * 1-5", ...) or an "interval" (seconds).

Saving a task with the "internval" configuration through the combobox
persisted the right data, but when re-displaying the value via
FormEngine, the persisted data would always only show the contents
of "cronCmd" (empty).

With this patch, in case "cronCmd" is empty, the interval will be
evaluated and used for the contents of the combobox.

This follows the same approach as in line 283 of
`EXT:scheduler/Classes/Domain/Repository/SchedulerTaskRepository.php`:

```
$taskData['frequency'] = $taskObject->getExecution()->getCronCmd()
                       ?: $taskObject->getExecution()->getInterval();
```

Review

  • Code review CR +2 Done
    • Oli Bartsch +2
  • Verified V +2 Done
    • Oli Bartsch +2
    • core-ci +1 CI

Issues 2

Files 1

Review log 34

  1. Oli Bartsch commented on patch set 1 12/08/25, 08:26

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 12/08/25, 08:34 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/91810

  3. Oli Bartsch voted on patch set 1 CR +2 V +2 12/08/25, 08:37

  4. Oli Bartsch merged patch set 2 12/08/25, 08:37