mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
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
This commit is contained in:
parent
d192410435
commit
549f36f82c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user