mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Don't mark pages as changed when setting HasBrokenFile=1 through Filesystem::sync() and SiteTree->onBeforeWrite() - its an internal change that shouldn't affect the page publication status (AIR-28)
This commit is contained in:
parent
5257c35dff
commit
9af805186b
@ -148,8 +148,9 @@ class Filesystem extends Object {
|
||||
if(class_exists('SiteTree')) {
|
||||
if(class_exists('Subsite')) Subsite::$disable_subsite_filter = true;
|
||||
foreach(DataObject::get("SiteTree") as $page) {
|
||||
// syncLinkTracking is called by SiteTree::onBeforeWrite()
|
||||
$page->write();
|
||||
// syncLinkTracking is called by SiteTree::onBeforeWrite().
|
||||
// Call it without affecting the page version, as this is an internal change.
|
||||
$page->writeWithoutVersion();
|
||||
}
|
||||
if(class_exists('Subsite')) Subsite::$disable_subsite_filter = false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user