Skip to content

Commit

Permalink
FIX Pages with obsolete class shouldnt do first versionless write
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamish Friedlander committed Aug 29, 2012
1 parent 949507c commit d9243cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/controllers/CMSMain.php
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ public function save($data, $form) {
$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) {
Expand Down

0 comments on commit d9243cd

Please sign in to comment.