You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a dataobject which has the versioned extension (versioning only, no staging) and FluentVersionedExtension applied. No matter how I create/save the object it always seems to remain in draft format. I have simplified down my dataobject for the purposes of replication and to rule out anything from the class itself but am still seeing issues. Not sure if this is definitely a bug or if I'm missing something
I've not used versioned without stages for a long time, and I haven't actually used ss 5.x in any case. Is there something changed in ss5 with regards to versioning without stages? Sorry I've been out of the Silverstripe game for a bit too long.
My suggestion is to keep the Versioned extension, but try removing FluentVersionedExtension (using FluentExtension on its own), due to the lack of stages. It may be sufficient for your admin interface to work.
If you run into issues with this, is removing versioning from your record an option?
If I were to spend the time to fix this in fluent, I would look at FluentVersionedExtension and add some more intelligent logic for checking the list of active stages.
Module version(s) affected
7.1.1
Description
I have a dataobject which has the versioned extension (versioning only, no staging) and FluentVersionedExtension applied. No matter how I create/save the object it always seems to remain in draft format. I have simplified down my dataobject for the purposes of replication and to rule out anything from the class itself but am still seeing issues. Not sure if this is definitely a bug or if I'm missing something
How to reproduce
Using Silverstripe 5.2
PHP Class
YML Config
File 1
File 2
When first creating an object there is only a create button, clicking this results in the following
It also does not publish the image as I would expect (Image relationship appears in $owns).
I then have the localisation menu and click 'save and publish (all locales)'. This does publish the image but not the object
Clicking 'publish in this locale' in the localisation table also does not publish and leaves the record in draft state.
Any help would be much appreciated!
The text was updated successfully, but these errors were encountered: