Skip to content

Commit

Permalink
added safety check for easier customisation
Browse files Browse the repository at this point in the history
  • Loading branch information
Guite committed Nov 26, 2017
1 parent e43a11e commit 7bbdd08
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ class FormHandler {
$args['commandName'] = $action['id'];
}
}
if ($this->templateParameters['mode'] == 'create' && $this->form->get('submitrepeat')->isClicked()) {
if ($this->templateParameters['mode'] == 'create' && $this->form->has('submitrepeat') && $this->form->get('submitrepeat')->isClicked()) {
$args['commandName'] = 'submit';
$this->repeatCreateAction = true;
}
Expand Down Expand Up @@ -1384,7 +1384,7 @@ class FormHandler {
$args['commandName'] = $action['id'];
}
}
if ($this->templateParameters['mode'] == 'create' && $this->form->get('submitrepeat')->isClicked()) {
if ($this->templateParameters['mode'] == 'create' && $this->form->has('submitrepeat') && $this->form->get('submitrepeat')->isClicked()) {
$args['commandName'] = 'submit';
$this->repeatCreateAction = true;
}
Expand Down

0 comments on commit 7bbdd08

Please sign in to comment.