Skip to content

Commit

Permalink
IBX-4796: CS
Browse files Browse the repository at this point in the history
  • Loading branch information
barw4 committed Jan 18, 2023
1 parent 95ad78b commit 160a3fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/Form/Processor/ContentFormProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ public function processPublish(FormActionEvent $event)
$event->setPayload('content', $content);
$event->setPayload('is_new', $draft->contentInfo->isDraft());

$locationId = !empty($referrerLocation) ? $referrerLocation->id : $content->contentInfo->mainLocationId;

$redirectUrl = $form['redirectUrlAfterPublish']->getData() ?: $this->router->generate(
'_ez_content_view', [
'contentId' => $content->id,
'locationId' => !empty($referrerLocation)
? $referrerLocation->id
: $content->contentInfo->mainLocationId,
'locationId' => $locationId,
]
);

Expand Down

0 comments on commit 160a3fe

Please # to comment.