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
Expected: the German version of the page is published and does not contain any unpublished changes
Actual: the German version of the page is published but indicates in the page tree that there are unpublished changes on it (from the English locale)
The fix for this may also involve needing to add another method isDraftInStage to FluentVersionedExtension to identify when a page is in its initial draft stage in a given locale (but has never been published in that locale).
Noticed while testing how Fluent behaves when looking at silverstripe/silverstripe-lumberjack#75, which isn't correctly indicating any versioned state in a lumberjack GridField "state" column.
The text was updated successfully, but these errors were encountered:
I am encountering something similar but am not very sure whether they are the same issue. I fixed this by creating an extension to FluentSiteTreeExtension:
namespace FC\Extensions;
use TractorCow\Fluent\Extension\FluentSiteTreeExtension;
class FixFluentSiteTreeExtension extends FluentSiteTreeExtension {
public function updateStatusFlags(&$flags) {
parent::updateStatusFlags($flags);
if($this->isPublishedInLocale()) {
unset($flags['modified']);
unset($flags['addedtodraft']);
} elseif($this->isDraftedInLocale()) {
unset($flags['modified']);
$flags['addedtodraft'] = array(
'text' => _t(FluentSiteTreeExtension::class.'.ADDEDTODRAFTSHORT', 'Draft'),
'title' => _t(FluentSiteTreeExtension::class.'.ADDEDTODRAFTHELP', "Page has not been published yet")
);
// this simplistically assumes no unsaved modifications as long as draft exist in the locale
}
}
}
CWP 2.1.x-dev, SilverStripe 4.2.x-dev, Fluent 4.1.x-dev
Background:
Expected: the German version of the page is published and does not contain any unpublished changes
Actual: the German version of the page is published but indicates in the page tree that there are unpublished changes on it (from the English locale)
The fix for this may also involve needing to add another method
isDraftInStage
toFluentVersionedExtension
to identify when a page is in its initial draft stage in a given locale (but has never been published in that locale).Noticed while testing how Fluent behaves when looking at silverstripe/silverstripe-lumberjack#75, which isn't correctly indicating any versioned state in a lumberjack GridField "state" column.
The text was updated successfully, but these errors were encountered: