Skip to content

Commit

Permalink
Fix document delete action to be post
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-kl1 committed Jun 14, 2021
1 parent 14ca42a commit c3cf67a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ui/Component/Document/Form/Button/DeleteButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function getButtonData(): array
'label' => new Phrase('Delete'),
'class' => 'delete',
'on_click' => sprintf(
'deleteConfirm(\'%s\', \'%s\')',
'deleteConfirm(\'%s\', \'%s\', {"data": {}})',
new Phrase('Are you sure you want to do this?'),
$this->urlBuilder->getUrl('*/*/delete', ['id' => $entityId])
),
Expand Down

0 comments on commit c3cf67a

Please sign in to comment.