Skip to content

Commit

Permalink
Merge pull request #26 from xima-media/slug-fix
Browse files Browse the repository at this point in the history
fix: abort in case fe_users do not have slug field
  • Loading branch information
maikschneider authored Jul 20, 2024
2 parents 167262b + 3da8761 commit 5004564
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Classes/UserFactory/FrontendUserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ public function registerRemoteUser(int $targetPid): ?array

protected function updateFrontendUserSlug(&$userRecord): void
{
// abort in case no slug field is defined
if (!isset($GLOBALS['TCA']['fe_users']['columns']['slug'])) {
return;
}

// init SlugHelper for this table
$fieldConfig = $GLOBALS['TCA']['fe_users']['columns']['slug']['config'];
/** @var SlugHelper $slugHelper */
Expand Down

0 comments on commit 5004564

Please sign in to comment.