From 058a621d3681ffa53dcf1b3fad005f5ac748bef0 Mon Sep 17 00:00:00 2001 From: David Molineus Date: Mon, 23 Jun 2014 18:38:29 +0200 Subject: [PATCH] inject errors into container --- src/Netzmacht/Bootstrap/Form/Subscriber.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Netzmacht/Bootstrap/Form/Subscriber.php b/src/Netzmacht/Bootstrap/Form/Subscriber.php index 9c885b5..207e264 100644 --- a/src/Netzmacht/Bootstrap/Form/Subscriber.php +++ b/src/Netzmacht/Bootstrap/Form/Subscriber.php @@ -81,6 +81,9 @@ public function generate(GenerateEvent $event) $this->setColumnLayout($widget, $container, $label); $this->adjustElement($event, $element, $widget, $container); $this->addInputGroup($widget, $container, $element); + + // inject errors into container + $container->addChild('errors', $errors); }