From 71a988843a4c1e37ca999fb33d44dec01dc2cd12 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 10 Feb 2014 08:51:18 +1300 Subject: [PATCH] ToggleCompositeField variation --- code/BasicFieldsTestPage.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/code/BasicFieldsTestPage.php b/code/BasicFieldsTestPage.php index 5fd1064..7fe355c 100644 --- a/code/BasicFieldsTestPage.php +++ b/code/BasicFieldsTestPage.php @@ -147,6 +147,12 @@ class BasicFieldsTestPage extends TestPage { ->setMultiple(true) ->setSize(3), Object::create('OptionsetField', 'OptionSet', 'OptionSetField', TestCategory::map()), + Object::create('ToggleCompositeField', 'ToggleCompositeField', 'ToggleCompositeField', new FieldList( + Object::create('TextField', 'ToggleCompositeTextField1'), + Object::create('TextField', 'ToggleCompositeTextField2'), + Object::create('DropdownField', 'ToggleCompositeDropdownField', 'ToggleCompositeDropdownField', TestCategory::map()), + Object::create('TextField', 'ToggleCompositeTextField3') + )) )); // All these date/time fields generally have issues saving directly in the CMS @@ -189,7 +195,9 @@ class BasicFieldsTestPage extends TestPage { } } - $blacklist = array('DMYDate', 'Required', 'Validated'); + $blacklist = array( + 'DMYDate', 'Required', 'Validated', 'ToggleCompositeField', + ); $tabs = array('Root.Text', 'Root.Numeric', 'Root.Option', 'Root.DateTime', 'Root.File'); foreach($tabs as $tab) { @@ -264,4 +272,4 @@ class BasicFieldsTestPage_Controller extends TestPage_Controller { } } -?> +?> \ No newline at end of file