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

OES-618: Provide default value for version field number if none is present #95

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

heartdriven
Copy link

OES-618

Not sure if this is the right way to fix the problem, but it does the trick for us. Feel free to make any comments, requests or amends in order to get this problem fixed.

Thank you!

Description

If you enable entity_version and this module at a later stage (where nodes already exists), there is no default value for the version field resulting in an error when reverting the revision. This provides a default value of 0.0.0 when a revision has an empty value.

Change log

  • Changed:
    ./modules/oe_editorial_entity_version/src/Form/NodeRevisionRevertForm.php

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.

1 participant