From fcc6948e7904335b22580521f95e0b4abaadb146 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 6 Jul 2009 21:48:12 +0000 Subject: [PATCH] BUGFIX Setting brokenOnConstruct to FALSE in CompositeField::__construct() - it skips a constructor, hence breaking request handling (and therefore direct field access through /Form/Field/MyCompositeField/FieldHolder git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@81127 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/CompositeField.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/forms/CompositeField.php b/forms/CompositeField.php index 34a50dc27..6936a3efa 100755 --- a/forms/CompositeField.php +++ b/forms/CompositeField.php @@ -39,6 +39,9 @@ class CompositeField extends FormField { } $this->children->setContainerField($this); + // Skipping FormField::__construct(), but we have to make sure this + // doesn't count as a broken constructor + $this->brokenOnConstruct = false; Object::__construct(); }