-
Notifications
You must be signed in to change notification settings - Fork 638
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
[4.x]: Revision Notes not working #12641
Comments
Thanks for reporting! At the moment {% set revision = entry.currentRevision %}
{% if revision %}
{% set behavior = revision.getBehavior('revision') %}
{% if behavior %}
{{ behavior.revisionNotes }}
{% endif %}
{% endif %} |
This should be fixed now, in Craft 4.3.8. Revision notes that were set on the input weren’t being retained when you reloaded the entry edit page. |
Thanks for looking into this. I updated to 4.3.8 and now the revision notes are saved while an entry is a draft but as soon as I save the entry, the revision notes are gone. When writing a new revision note for a published entry, they disappear as soon as I save the entry. |
Very odd. I'm not seeing the same behavior on a clean install. Is there anything in |
@olsp Does your section have versioning enabled? |
Yes, I do see versions. I just created a new version with a revision note. When I switch to the previous version, I do see the "old" revision note. So it seems like the only the current revision note isn't visible. |
@brianjhanson here is what I have added to the config:
I don't really know what to look for in the logs. Do you have a hint what to look into? |
Can you send over a database dump, |
Craft 3.7.66 and 4.3.9 are out with that fix! |
What happened?
I tried to use the revision notes for entries but everytime I change field value, write something in the revision note field and save, the text in the revision notes are gone.
In my template I already prepared the code to display the notes on the frontend like this
{{ entry.revisionNotes }}
, but then I get an error: "Invalid Call – yii\base\InvalidCallException Getting write-only property: craft\elements\Entry::revisionNotes
"Are the revision notes not meant to be used like this?
Craft CMS version
4.3.6.1
PHP version
8.0.14
The text was updated successfully, but these errors were encountered: