From 372890703ca96abfa8695277c1851c0b8ca52428 Mon Sep 17 00:00:00 2001 From: Will Morgan Date: Fri, 17 May 2013 10:29:21 +0200 Subject: [PATCH] FIX allow children to be accessed via template --- forms/ConfirmedPasswordField.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/forms/ConfirmedPasswordField.php b/forms/ConfirmedPasswordField.php index de9f4ba5b..7bf857e47 100644 --- a/forms/ConfirmedPasswordField.php +++ b/forms/ConfirmedPasswordField.php @@ -145,6 +145,14 @@ class ConfirmedPasswordField extends FormField { return $content; } + /** + * Returns the children of this field for use in templating. + * @return FieldList + */ + public function getChildren() { + return $this->children; + } + /** * Can be empty is a flag that turns on/off empty field checking. * For example, set this to false (the default) when creating a user account,