QuickForm: fix ampersand for form actions

This commit is contained in:
Thomas Gelf 2015-10-13 17:29:20 +02:00
parent be98cf5133
commit 5a244e209a
1 changed files with 4 additions and 3 deletions

View File

@ -221,10 +221,11 @@ abstract class QuickForm extends Zend_Form
public function setAction($action)
{
if (! $action instanceof Url) {
$action = Url::fromPath($action);
if ($action instanceof Url) {
$action = $action->getAbsoluteUrl('&');
}
return parent::setAction((string) $action);
return parent::setAction($action);
}
public function setIcingaModule(Module $module)