Revision 8d58fece
Von Bernd Bleßmann vor etwa 1 Jahr hinzugefügt
SL/Controller/DeliveryOrder.pm | ||
---|---|---|
115 | 115 |
my $from_type = $::form->{from_type}; |
116 | 116 |
my $from_id = $::form->{from_id}; |
117 | 117 |
|
118 |
unless ($from_type && $from_id) { |
|
119 |
$self->js->flash('error', t8("Can't create new record.")); |
|
120 |
$self->js->flash('error', t8("No 'from_type' was given.")) unless ($from_type); |
|
121 |
$self->js->flash('error', t8("No 'from_id' was given.")) unless ($from_id); |
|
122 |
return $self->js->render(); |
|
123 |
} |
|
118 |
die "No 'from_type' was given." unless ($from_type); |
|
119 |
die "No 'from_id' was given." unless ($from_id); |
|
124 | 120 |
|
125 | 121 |
my $record = SL::Model::Record->get_record($from_type, $from_id); |
126 | 122 |
my $delivery_order = SL::Model::Record->new_from_workflow($record, $self->type); |
Auch abrufbar als: Unified diff
"neue" Beleg-Controller: interne Status-Fehler einfach mit "die" behandeln.