From a360865b47d4c344e3a817093d8514d6be277673 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 12 Mar 2012 17:23:29 +0100 Subject: [PATCH] ENHANCEMENT Added LegacyTableFieldTestPage --- code/LegacyTableFieldsTestPage.php | 23 +++++++++++++++++++++++ code/RelationFieldsTestPage.php | 5 ----- 2 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 code/LegacyTableFieldsTestPage.php diff --git a/code/LegacyTableFieldsTestPage.php b/code/LegacyTableFieldsTestPage.php new file mode 100644 index 0000000..dac0bf6 --- /dev/null +++ b/code/LegacyTableFieldsTestPage.php @@ -0,0 +1,23 @@ +setShowPagination(true); + $ctf = new ComplexTableField($this, 'CompaniesCTF', 'Company'); + + $fields->addFieldsToTab('Root.Fields', array( + $tf, + $ctf + )); + + return $fields; + } +} + +class LegacyTableFieldsTestPage_Controller extends TestPage_Controller { + +} \ No newline at end of file diff --git a/code/RelationFieldsTestPage.php b/code/RelationFieldsTestPage.php index 241410e..cb8b3d1 100644 --- a/code/RelationFieldsTestPage.php +++ b/code/RelationFieldsTestPage.php @@ -28,11 +28,6 @@ class RelationFieldsTestPage extends TestPage { Object::create('TreeMultiselectField', 'ManyManyPages', 'ManyManyPages (with search)', 'SiteTree')->setShowSearch(true) )); - // TODO Fix CTF in 3.0 - // $fields->addFieldToTab("Root.CTF", - // new ComplexTableField($this, "HasManyCompanies", "TestCTFItem") - // ); - // $fields->addFieldToTab("Root.Tests.ComplexTableField", // new CheckboxSetField("CheckboxSet", "CheckboxSetField", TestCategory::map())); // $fields->addFieldToTab("Root.Tests.CheckboxSet", new CheckboxSetField("CheckboxSet", "CheckboxSetField", TestCategory::map()));