Review 10.4 Merged

66034[BUGFIX] Do not read workspace if there is no BE user

Georg Ringer CR +2 V +2 Easy +2 −2 updated 10/10/20, 19:57

Commit message

Running the PopulatePageSlugs upgrade uses the SlugService
to generate the slugs. SlugService itself uses
BackendUtility::getRecordLocalization() which
does a DB query using a WorkspaceRestriction.
This restriction uses the workspace of the current
BE user. But within the Install Tool upgrade there is no
such user of course.

Add the necessary condition to avoid a PHP type error.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 2

Files 1