1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 02:04:35 +02:00

Add the FieldtypeDoesVersions interface for Fieldtypes that support handling versions of their own page data

This commit is contained in:
Ryan Cramer
2023-12-08 13:39:48 -05:00
parent 993b5cc162
commit 3e323e5f2f
2 changed files with 55 additions and 0 deletions

View File

@@ -881,6 +881,9 @@ class PageTraversal {
}
if($language && $language->id) $url .= "&language=$language->id";
}
$version = (int) ((string) $page->get('_version|_repeater_version'));
if($version) $url .= "&version=$version";
$append = $page->wire()->session->getFor($page, 'appendEditUrl');