diff --git a/_config.php b/_config.php index eb8b8613..fe375184 100644 --- a/_config.php +++ b/_config.php @@ -19,7 +19,6 @@ Director::addRules(1, array( // Register default side reports SS_Report::register("SideReport", "SideReport_EmptyPages"); SS_Report::register("SideReport", "SideReport_RecentlyEdited"); -SS_Report::register("SideReport", "SideReport_ToDo"); if (class_exists('SubsiteReportWrapper')) SS_Report::register('ReportAdmin', 'SubsiteReportWrapper("BrokenLinksReport")',-20); else SS_Report::register('ReportAdmin', 'BrokenLinksReport',-20); diff --git a/code/model/SiteTree.php b/code/model/SiteTree.php index d3892071..9d055430 100755 --- a/code/model/SiteTree.php +++ b/code/model/SiteTree.php @@ -77,9 +77,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid "ReportClass" => "Varchar", "CanViewType" => "Enum('Anyone, LoggedInUsers, OnlyTheseUsers, Inherit', 'Inherit')", "CanEditType" => "Enum('LoggedInUsers, OnlyTheseUsers, Inherit', 'Inherit')", - - // Simple task tracking - "ToDo" => "Text", ); static $indexes = array( @@ -1806,10 +1803,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid _t('SiteTree.HOMEPAGEFORDOMAIN', "Domain(s)", PR_MEDIUM, 'Listing domains that should be used as homepage') ) ), - $tabToDo = new Tab(_t('SiteTree.TABTODO', 'To-do') . ($this->ToDo ? '**' : ''), - new LiteralField("ToDoHelp", _t('SiteTree.TODOHELP', "
You can use this to keep track of work that needs to be done to the content of your site. To see all your pages with to do information, open the 'Site Reports' window on the left and select 'To Do'
")), - new TextareaField("ToDo", "", 10) - ), $tabDependent = new Tab('Dependent', $dependentNote, $dependentTable @@ -1930,7 +1923,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid $labels['HomepageForDomain'] = _t('SiteTree.HomepageForDomain', 'Hompage for this domain'); $labels['CanViewType'] = _t('SiteTree.Viewers', 'Viewers Groups'); $labels['CanEditType'] = _t('SiteTree.Editors', 'Editors Groups'); - $labels['ToDo'] = _t('SiteTree.ToDo', 'Todo Notes'); $labels['Comments'] = _t('SiteTree.Comments', 'Comments'); $labels['LinkChangeNote'] = _t ( 'SiteTree.LINKCHANGENOTE', 'Changing this page\'s link will also affect the links of all child pages.' diff --git a/code/reports/SideReport.php b/code/reports/SideReport.php index 91ebc99e..d58f576a 100755 --- a/code/reports/SideReport.php +++ b/code/reports/SideReport.php @@ -180,37 +180,6 @@ class SideReport_RecentlyEdited extends SS_Report { } } -/** - * @package cms - * @subpackage content - */ -class SideReport_ToDo extends SS_Report { - function title() { - return _t('SideReport.TODO',"Pages with To Do items"); - } - function group() { - return _t('SideReport.ContentGroupTitle', "Content reports"); - } - function sort() { - return 0; - } - function sourceRecords($params = null) { - return DataObject::get("SiteTree", "\"SiteTree\".\"ToDo\" IS NOT NULL AND \"SiteTree\".\"ToDo\" <> ''", "\"SiteTree\".\"LastEdited\" DESC"); - } - function columns() { - return array( - "Title" => array( - "title" => "Title", // todo: use NestedTitle(2) - "link" => true, - ), - "ToDo" => array( - "title" => "ToDo", - "newline" => true, - ), - ); - } -} - /** * Content side-report listing pages with broken links *