Skip to content

Hardcoded revisions payload not changeable #6026

@jonassiewertsen

Description

@jonassiewertsen

Bug description

We are working on some custom revisions. As they have been coded to an interface, this does work great on the PHP side.

The payload beeing send, to restore a revision, is hardcoded though and can't be changed. This is an issue in our case, as we aren't using the timestamp as our reference.

https://github.com/statamic/cms/blob/3.3/resources/js/components/revision-history/Restore.vue#L38-L40

How to reproduce

Activate revisions.

Logs

No response

Versions

Statamic 3.3.9 Pro
Laravel 8.83.10
PHP 8.0.18

Installation

Fresh statamic/statamic site via CLI

Antlers Parser

No response

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions