Don't let AutoRefreshForm handle API requests

refs #2749
This commit is contained in:
Alexander A. Klimov 2017-02-14 11:16:05 +01:00 committed by Eric Lippmann
parent 235e75d054
commit ee60a8df99
1 changed files with 3 additions and 1 deletions

View File

@ -447,7 +447,9 @@ class ActionController extends Zend_Controller_Action
public function preDispatch()
{
$form = new AutoRefreshForm();
if (! $this->getRequest()->isApiRequest()) {
$form->handleRequest();
}
$this->_helper->layout()->autoRefreshForm = $form;
}