Revision ec4a82db
Von Tamino Steinert vor 12 Monaten hinzugefügt
SL/Controller/Reclamation.pm | ||
---|---|---|
211 | 211 |
|
212 | 212 |
flash_later('info', t8('The reclamation has been saved')); |
213 | 213 |
|
214 |
my @redirect_params = ( |
|
215 |
action => 'edit', |
|
216 |
type => $self->type, |
|
217 |
id => $self->reclamation->id, |
|
218 |
); |
|
214 |
my @redirect_params; |
|
215 |
if ($::form->{back_to_caller}) { |
|
216 |
@redirect_params = $::form->{callback} ? ($::form->{callback}) |
|
217 |
: (controller => 'LoginScreen', action => 'user_login'); |
|
218 |
} else { |
|
219 |
@redirect_params = ( |
|
220 |
action => 'edit', |
|
221 |
type => $self->type, |
|
222 |
id => $self->reclamation->id, |
|
223 |
callback => $::form->{callback}, |
|
224 |
); |
|
225 |
} |
|
226 |
|
|
219 | 227 |
$self->redirect_to(@redirect_params); |
220 | 228 |
} |
221 | 229 |
|
... | ... | |
1964 | 1972 |
['kivi.validate_form','#reclamation_form'], |
1965 | 1973 |
], |
1966 | 1974 |
], |
1975 |
action => [ |
|
1976 |
t8('Save and Close'), |
|
1977 |
call => [ 'kivi.Reclamation.save', { |
|
1978 |
action => 'save', |
|
1979 |
warn_on_duplicates => $::instance_conf->get_reclamation_warn_duplicate_parts, |
|
1980 |
warn_on_reqdate => $::instance_conf->get_reclamation_warn_no_reqdate, |
|
1981 |
form_params => [ |
|
1982 |
{ name => 'back_to_caller', value => 1 }, |
|
1983 |
], |
|
1984 |
}], |
|
1985 |
checks => [ |
|
1986 |
['kivi.validate_form','#reclamation_form'], |
|
1987 |
], |
|
1988 |
], |
|
1967 | 1989 |
action => [ |
1968 | 1990 |
t8('Save as new'), |
1969 | 1991 |
call => [ 'kivi.Reclamation.save', { |
Auch abrufbar als: Unified diff
Speichern/Buchen und schließen zu Belegen hinzufügt