diff --git a/admin/code/LeftAndMain.php b/admin/code/LeftAndMain.php index da6a73500..8df4f4786 100644 --- a/admin/code/LeftAndMain.php +++ b/admin/code/LeftAndMain.php @@ -1021,10 +1021,7 @@ class LeftAndMain extends Controller implements PermissionProvider { $form->saveInto($record); $record->write(); - // Used in TinyMCE inline folder creation - if(isset($data['returnID'])) { - return $record->ID; - } else if($this->isAjax()) { + if($this->isAjax()) { $form = $this->getEditForm($record->ID); return $form->forTemplate(); } else {