Merge pull request #1689 from ninty9notout/master

Removed dud Requirements breaking the RedirectorPage
This commit is contained in:
Daniel Hensby 2016-11-30 13:16:33 +00:00 committed by GitHub
commit 669a7e6945

View File

@ -6,7 +6,6 @@ use SilverStripe\Forms\HeaderField;
use SilverStripe\Forms\OptionsetField;
use SilverStripe\Forms\TextField;
use SilverStripe\Forms\TreeDropdownField;
use SilverStripe\View\Requirements;
use Page;
/**
@ -139,8 +138,6 @@ class RedirectorPage extends Page {
}
public function getCMSFields() {
Requirements::javascript(CMS_DIR . '/client/dist/js/RedirectorPage.js');
$fields = parent::getCMSFields();
$fields->removeByName('Content', true);