8000 minor fix · symfony/symfony-docs@22314eb · GitHub
[go: up one dir, main page]

Skip to content

Commit 22314eb

Browse files
authored
minor fix
1 parent 7ecff64 commit 22314eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

form/multiple_buttons.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ querying if the "Save and add" button was clicked::
3535
Or you can get the button's name by using the
3636
:method:`Symfony\\Component\\Form\\Form::getClickedButton` method of the form::
3737
38-
if ('saveAndAdd' === $form->getClickedButton()->getName()) {
38+
if ($form->getClickedButton() && 'saveAndAdd' === $form->getClickedButton()->getName()) {
3939
// ...
4040
}
4141

0 commit comments

Comments
 (0)
0