Skip to content

Commit

Permalink
View saved version in current edit locale
Browse files Browse the repository at this point in the history
  • Loading branch information
I-Valchev authored and bobdenotter committed May 21, 2020
1 parent 5142eb4 commit 3b4b20a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/content/_buttons.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<hr>
<div class="form-fieldsgroup__summary-fields">
{% if record.status == "published" and record.definition.viewless != true %}
<a href="{{ record|link(true) }}" class="btn btn-tertiary btn-sm" target="_blank">{{ macro.icon('fa-sign-out-alt') }} {{ __('action.view_saved') }}</a>
<a href="{{ record|link(true, currentlocale) }}" class="btn btn-tertiary btn-sm" target="_blank">{{ macro.icon('fa-sign-out-alt') }} {{ __('action.view_saved') }}</a>
{% endif %}
<a href="{{ record.extras.deleteLink }}" class='action-remove-collection-item btn btn-sm btn-hidden-danger' data-confirmation="{{ 'action.confirm_delete'|trans }}">
{{ macro.icon('trash') }}{{ 'action.delete'|trans }}
Expand Down

0 comments on commit 3b4b20a

Please sign in to comment.