FIX Pages with obsolete class shouldnt do first versionless write

This commit is contained in:
Hamish Friedlander 2012-08-29 16:17:17 +12:00
parent 949507c3fe
commit d9243cddde

View File

@ -783,7 +783,7 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
$record->HasBrokenLink = 0;
$record->HasBrokenFile = 0;
$record->writeWithoutVersion();
if (!$record->ObsoleteClassName) $record->writeWithoutVersion();
// Update the class instance if necessary
if(isset($data['ClassName']) && $data['ClassName'] != $record->ClassName) {