From 549f36f82c1074af601bd3d4b0284404fcd9db55 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 16 Jul 2015 11:27:02 +0200 Subject: [PATCH] Form: Do not create a new instance of Url when setting the action We're shifting parameters and by creating a new instance we'll lose such changes. refs #8758 --- library/Icinga/Web/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Web/Form.php b/library/Icinga/Web/Form.php index e2ee66d0a..188f8e09c 100644 --- a/library/Icinga/Web/Form.php +++ b/library/Icinga/Web/Form.php @@ -615,7 +615,7 @@ class Form extends Zend_Form // TODO(el): Re-evalute this necessity. JavaScript could use the container's URL if there's no action set. // We MUST set an action as JS gets confused otherwise, if // this form is being displayed in an additional column - $this->setAction(Url::fromRequest()->without(array_keys($this->getElements()))); + $this->setAction($this->getRequest()->getUrl()->without(array_keys($this->getElements()))); } $this->created = true;