From 047b3deb41f8388afcc14e2ac62c3f780576377e Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 18 Nov 2009 23:53:43 +0000 Subject: [PATCH] MINOR Added ComplexTableField::setController() which makes testing useful for switching between controllers git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@92134 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.