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

mark owner object as changed when attributes are changed #2

Merged
merged 1 commit into from
Jun 21, 2023

Conversation

xini
Copy link
Contributor

@xini xini commented Jun 16, 2023

This solves the issue where the owner object is not marked as changed when attributes are changed.

This is a bit ugly because we create a new version of the owner object even though there are no changes on the actual object, but from a user's point of view it makes a lot more sense to see the "modified" label on an object when they changed the attributes.

It's somwhat related to silverstripe/silverstripe-versioned#195, but I dodn't want to use that suggested (experimental) module https://github.com/silverstripe/silverstripe-versioned-snapshots because it never reached stable and doesn't seem to be maintained.

@dizzystuff dizzystuff merged commit 45df01c into fromholdio:master Jun 21, 2023
@dizzystuff
Copy link
Contributor

Awesome, thanks!

@dizzystuff
Copy link
Contributor

Tagged as 2.4.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants