diff --git a/src/Bridges/FormsLatte/FormMacros.php b/src/Bridges/FormsLatte/FormMacros.php index 3a6c7d795..6b8daccb6 100644 --- a/src/Bridges/FormsLatte/FormMacros.php +++ b/src/Bridges/FormsLatte/FormMacros.php @@ -233,7 +233,7 @@ public static function renderFormBegin(Form $form, array $attrs, $withTags = TRU $control->setOption('rendered', FALSE); } $el = $form->getElementPrototype(); - $el->action = $action = (string) $el->action; + $el->action = (string) $el->action; $el = clone $el; if (strcasecmp($form->getMethod(), 'get') === 0) { $el->action = preg_replace('~\?[^#]*~', '', $el->action, 1); diff --git a/src/Forms/Rendering/DefaultFormRenderer.php b/src/Forms/Rendering/DefaultFormRenderer.php index a81e7084e..91962a436 100644 --- a/src/Forms/Rendering/DefaultFormRenderer.php +++ b/src/Forms/Rendering/DefaultFormRenderer.php @@ -158,7 +158,6 @@ public function render(Nette\Forms\Form $form, $mode = NULL) */ protected function init() { - // TODO: only for back compatiblity - remove? $wrapper = & $this->wrappers['control']; foreach ($this->form->getControls() as $control) { if ($control->isRequired() && isset($wrapper['.required'])) {