Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue when clicking the preview button from the node view full template would cause errors due to form token #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
{/if}
</li>
<li>
<form method="post" id="previewForm" action={concat( 'content/versionview/', $node.object.id, '/', $node.object.current_version, '/', $language.locale, '/', $from_language )|ezurl}>
<form method="post" id="previewForm" action={concat( 'content/versionview/', $node.object.id, '/', $node.object.current_version, '/', $node.object.current_language_object.locale_object.locale_code )|ezurl}>
<input type="hidden" id="SelectedLanguage" name="SelectedLanguage" value="{$node.object.current_language_object.locale_object.locale_code}" />
<input type="hidden" name="ChangeSettingsButton" value="{'Update view'|i18n( 'design/admin/content/view/versionview' )}" title="{'View the version that is currently being displayed using the selected language, location and design.'|i18n( 'design/admin/content/view/versionview' )}" />
<input type="hidden" name="ezxform_token" value="@$ezxFormToken@" />
<input type="hidden" name="_token" value="@$ezxFormToken@" />
</form>
<a type="submit" name="ChangeSettingsButton" title="{'View the version that is currently being displayed using the selected language, location and design.'|i18n( 'design/admin/content/view/versionview' )}" onclick="document.getElementById('previewForm').submit();"><i class="fa fa-globe"></i> Preview</a>
</li>
Expand Down