Skip to content

Commit

Permalink
Merge branch 'feature/64183-redirect-problems' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
dhoffmann1979 committed Nov 6, 2024
2 parents e0e1596 + 6cf8161 commit ff5a2b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ public function selectSiteAction(int $redirect, array $properties = null): Respo
),
);
if (isset($_POST['_saveandpublish'])) {
$this->redirect('publish', null, null, ['redirects' => [$redirectDto->uid]]);
return $this->redirect('publish', null, null, ['redirects' => [$redirectDto->uid]]);
}
$this->redirect('list');
return $this->redirect('list');
}
$sites = $this->foreignSiteFinder->getAllSites();
$siteOptions = [
Expand Down
6 changes: 3 additions & 3 deletions Resources/Private/Partials/Redirect/DirtyProperties.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

Line breaks and whitespace is visible where this partial is rendered.
</f:comment>
<f:if condition="{redirect.record.state} == 'changed'"><f:then>
<f:if condition="{redirect.state} == 'changed'"><f:then>
<f:translate key="redirect.record.property" /> | <f:translate key="redirect.record.property.old" /> -> <f:translate key="redirect.record.property.new" />

<f:for each="{redirect.record.dirtyProperties}" as="name">{name} | <publish:Miscellaneous.GetPropertyFromStagingDefinition record="{redirect.record}" propertyName="{name}" stagingLevel="foreign"/> -> <publish:Miscellaneous.GetPropertyFromStagingDefinition record="{redirect.record}" propertyName="{name}" stagingLevel="local"/>
<f:for each="{redirect.changedProps}" as="name">{name} | <publish:Miscellaneous.GetPropertyFromStagingDefinition record="{redirect}" propertyName="{name}" stagingLevel="foreign"/> -> <publish:Miscellaneous.GetPropertyFromStagingDefinition record="{redirect}" propertyName="{name}" stagingLevel="local"/>
</f:for>
</f:then><f:else>
<f:translate key="record.state.{redirect.record.state}" />
<f:translate key="record.state.{redirect.state}" />
</f:else></f:if>
</html>

0 comments on commit ff5a2b5

Please sign in to comment.