Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

FIX Pages with obsolete class shouldnt do first versionless write

  • Loading branch information...
commit d9243cddde050c9d1d65533b92011dc0b5ce7fd1 1 parent 949507c
@hafriedlander hafriedlander authored
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) {
Please sign in to comment.
Something went wrong with that request. Please try again.