Skip to content

Commit

Permalink
IBX-4796: Applied review remark
Browse files Browse the repository at this point in the history
  • Loading branch information
barw4 committed Jan 30, 2023
1 parent 160a3fe commit f49e3f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Form/Processor/ContentFormProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function processPublish(FormActionEvent $event)
$event->setPayload('content', $content);
$event->setPayload('is_new', $draft->contentInfo->isDraft());

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

$redirectUrl = $form['redirectUrlAfterPublish']->getData() ?: $this->router->generate(
'_ez_content_view', [
Expand Down

0 comments on commit f49e3f5

Please # to comment.