mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
FIX Pages with obsolete class shouldnt do first versionless write
This commit is contained in:
parent
949507c3fe
commit
d9243cddde
@ -783,7 +783,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
$record->HasBrokenLink = 0;
|
$record->HasBrokenLink = 0;
|
||||||
$record->HasBrokenFile = 0;
|
$record->HasBrokenFile = 0;
|
||||||
|
|
||||||
$record->writeWithoutVersion();
|
if (!$record->ObsoleteClassName) $record->writeWithoutVersion();
|
||||||
|
|
||||||
// Update the class instance if necessary
|
// Update the class instance if necessary
|
||||||
if(isset($data['ClassName']) && $data['ClassName'] != $record->ClassName) {
|
if(isset($data['ClassName']) && $data['ClassName'] != $record->ClassName) {
|
||||||
|
Loading…
Reference in New Issue
Block a user