Skip to content
Browse files

FIX Pages with obsolete class shouldnt do first versionless write

  • Loading branch information...
1 parent 949507c commit d9243cddde050c9d1d65533b92011dc0b5ce7fd1 @hafriedlander hafriedlander committed Aug 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 code/controllers/CMSMain.php
View
2 code/controllers/CMSMain.php
@@ -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) {

0 comments on commit d9243cd

Please sign in to comment.
Something went wrong with that request. Please try again.