Skip to content
This repository
Browse code

FIX Pages with obsolete class shouldnt do first versionless write

  • Loading branch information...
commit d9243cddde050c9d1d65533b92011dc0b5ce7fd1 1 parent 949507c
Hamish Friedlander authored August 29, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  code/controllers/CMSMain.php
2  code/controllers/CMSMain.php
@@ -783,7 +783,7 @@ public function save($data, $form) {
783 783
 		$record->HasBrokenLink = 0;
784 784
 		$record->HasBrokenFile = 0;
785 785
 
786  
-		$record->writeWithoutVersion();
  786
+		if (!$record->ObsoleteClassName) $record->writeWithoutVersion();
787 787
 
788 788
 		// Update the class instance if necessary
789 789
 		if(isset($data['ClassName']) && $data['ClassName'] != $record->ClassName) {

0 notes on commit d9243cd

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