Samuell1 / revisions-plugin

Revisions allows to extend any model with Revisionable trait with more features and easy to use.
https://octobercms.com/plugin/samuell-revisions
MIT License
9 stars 7 forks source link

Post, validate and revert changes that are selected #8

Closed rubenvanerk closed 4 years ago

rubenvanerk commented 4 years ago

When I selected some changes to restore, I got an error: "Invalid argument supplied for foreach()" on line 73 of /home/ruben/congos/pharme-v2/plugins/samuell/revisions/formwidgets/RevisionHistory.php

Turns out the selected changes were not posted. This pull request fixes that and also checks if there are actually selected changes when clicking on the 'Restore selected changes' button.

Samuell1 commented 4 years ago

Thanks!

Samuell1 commented 4 years ago

@rubenvanerk Can you fix the conflicts with your other PR? Then i can merge this too :)

rubenvanerk commented 4 years ago

@Samuell1 Done!