Revision 0b1cca5d
Von Tamino Steinert vor etwa 1 Jahr hinzugefügt
SL/Controller/Reclamation.pm | ||
---|---|---|
1582 | 1582 |
sub save { |
1583 | 1583 |
my ($self) = @_; |
1584 | 1584 |
|
1585 |
if (scalar @{$self->reclamation->items} == 0 && !grep { $self->type eq $_ } @{$::instance_conf->get_allowed_documents_with_no_positions() || []}) { |
|
1586 |
return [t8('The action you\'ve chosen has not been executed because the document does not contain any item yet.')]; |
|
1587 |
} |
|
1588 |
|
|
1589 | 1585 |
my $items_to_delete = scalar @{ $self->item_ids_to_delete || [] } |
1590 | 1586 |
? SL::DB::Manager::ReclamationItem->get_all(where => [id => $self->item_ids_to_delete]) |
1591 | 1587 |
: undef; |
Auch abrufbar als: Unified diff
Model::Record: Überprüfe ob Positionen vorhanden sind