From a099f7906fda4ba99f698cc64a0b6ffcb43cbff2 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 21 Nov 2009 01:43:33 +0000 Subject: [PATCH] MINOR Added ComplexTableField::setController() which makes testing useful for switching between controllers (from r92134) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92459 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/ComplexTableField.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/forms/ComplexTableField.php b/forms/ComplexTableField.php index f277a9f6c..504842364 100755 --- a/forms/ComplexTableField.php +++ b/forms/ComplexTableField.php @@ -380,6 +380,10 @@ JS; return $fieldset; } + function setController($controller) { + $this->controller = $controller; + } + /** * Determines on which relation-class the DetailForm is saved * by looking at the surrounding form-record.