We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9671623 commit ef449e0Copy full SHA for ef449e0
src/PanelTraits/ViewsAndRestoresRevisions.php
@@ -47,7 +47,7 @@ public function restoreRevision($id, $revisionId)
47
$revision = Revision::findOrFail($revisionId);
48
49
// Update the revisioned field with the old value
50
- $this->update($entry->getKey(), [$revision->key => $revision->old_value]);
+ $entry->update([$revision->key => $revision->old_value]);
51
52
// Reload the entry so we have the latest revisions
53
$entry = $this->getEntry($id);
0 commit comments