Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 310df8d8

Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt

  • ID 310df8d80726a11d430a99cd8367b1bc90d2a0d9
  • Vorgänger fd32682e
  • Nachfolger 69d2a6cb

Model::Record: Überprüfe ob Positionen vorhanden sind

Unterschiede anzeigen:

SL/Controller/Reclamation.pm
sub save {
my ($self) = @_;
if (scalar @{$self->reclamation->items} == 0 && !grep { $self->type eq $_ } @{$::instance_conf->get_allowed_documents_with_no_positions() || []}) {
return [t8('The action you\'ve chosen has not been executed because the document does not contain any item yet.')];
}
my $items_to_delete = scalar @{ $self->item_ids_to_delete || [] }
? SL::DB::Manager::ReclamationItem->get_all(where => [id => $self->item_ids_to_delete])
: undef;

Auch abrufbar als: Unified diff