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