Skip to content

Commit

Permalink
Add confirmation when deleting a business process
Browse files Browse the repository at this point in the history
  • Loading branch information
martialblog committed Sep 13, 2024
1 parent 3403b60 commit adbbe92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/forms/BpConfigForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ public function setup()

$label = $this->translate('Delete');
$el = $this->createElement('submit', $label, array(
'data-base-target' => '_main'
'data-base-target' => '_main',
'onclick' => sprintf('return confirm("%s")', $this->translate('Confirm deletion')),
))->setLabel($label)->setDecorators(array('ViewHelper'));
$this->deleteButtonName = $el->getName();
$this->addElement($el);
Expand Down

0 comments on commit adbbe92

Please sign in to comment.