CheckNowCommandForm#init(): set submit label

... otherwise Form#handleRequest() bypasses Form#isSubmitted()
on API requests and considers the CheckNowCommandForm submitted.

refs #4281
This commit is contained in:
Alexander A. Klimov 2020-11-26 18:38:55 +01:00
parent 6956ec4450
commit 7aacbd4db8
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@ class CheckNowCommandForm extends ObjectsCommandForm
public function init()
{
$this->setAttrib('class', 'inline');
$this->setSubmitLabel($this->translate('Check now'));
}
/**