Revision b4a40a3c
Von Tamino Steinert vor 26 Tagen hinzugefügt
SL/Controller/EmailJournal.pm | ||
---|---|---|
551 | 551 |
return; |
552 | 552 |
} |
553 | 553 |
|
554 |
sub action_toggle_attachment_processed { |
|
555 |
my ($self) = @_; |
|
556 |
|
|
557 |
$::auth->assert('email_journal'); |
|
558 |
|
|
559 |
my $attachment = SL::DB::EmailJournalAttachment->new( |
|
560 |
id => $::form->{attachment_id} |
|
561 |
)->load(); |
|
562 |
$self->entry($attachment->email_journal); |
|
563 |
|
|
564 |
if (!$self->can_view_all && ($self->entry->sender_id != SL::DB::Manager::Employee->current->id)) { |
|
565 |
$::form->error(t8('You do not have permission to access this entry.')); |
|
566 |
} |
|
567 |
|
|
568 |
$attachment->processed(!$attachment->processed); |
|
569 |
$attachment->save; |
|
570 |
|
|
571 |
$self->js |
|
572 |
->html('#processed_' . $attachment->id, $attachment->processed_as_bool_yn) |
|
573 |
->flash('info', |
|
574 |
$attachment->processed ? |
|
575 |
t8('Attachment \'#1\' set to processed.', $attachment->name) |
|
576 |
: t8('Attachment \'#1\' set to unprocessed.', $attachment->name) |
|
577 |
)->render(); |
|
578 |
|
|
579 |
return; |
|
580 |
} |
|
581 |
|
|
554 | 582 |
# |
555 | 583 |
# filters |
556 | 584 |
# |
Auch abrufbar als: Unified diff
EmailJournal: Verarbeitet-Status von Anhängen per Button ändern