Revision ddf3ccc4
Von Bernd Bleßmann vor fast 2 Jahren hinzugefügt
SL/Controller/Letter.pm | ||
---|---|---|
301 | 301 |
my @ids = @{ $::form->{ids} || [] }; |
302 | 302 |
SL::DB::Manager::LetterDraft->delete_all(where => [ id => \@ids ]) if @ids; |
303 | 303 |
|
304 |
flash('info', t8('Draft deleted')); |
|
304 | 305 |
$self->action_add(skip_drafts => 1); |
305 | 306 |
} |
306 | 307 |
|
... | ... | |
600 | 601 |
], |
601 | 602 |
action => [ |
602 | 603 |
t8('Delete'), |
603 |
submit => [ '#form', { action => 'delete_drafts' } ], |
|
604 |
submit => [ '#form', { action => 'Letter/delete_drafts' } ],
|
|
604 | 605 |
checks => [ [ 'kivi.check_if_entries_selected', '[name="ids[+]"]' ] ], |
605 | 606 |
confirm => t8('Do you really want to delete this draft?'), |
606 | 607 |
], |
Auch abrufbar als: Unified diff
Brief-Controller: Entwürfe löschen gefixt und Info-Meldung spendiert.