Revision cc9fbc1c
Von Thomas Heck vor mehr als 11 Jahren hinzugefügt
SL/Controller/CustomerVendor.pm | ||
---|---|---|
146 | 146 |
|
147 | 147 |
$self->_save(); |
148 | 148 |
|
149 |
$self->redirect_to(action => 'edit', id => $self->{cv}->id, db => $self->is_vendor() ? 'vendor' : 'customer'); |
|
149 |
my @redirect_params = ( |
|
150 |
action => 'edit', |
|
151 |
id => $self->{cv}->id, |
|
152 |
db => ($self->is_vendor() ? 'vendor' : 'customer'), |
|
153 |
); |
|
154 |
|
|
155 |
if ( $self->{contact}->cp_id ) { |
|
156 |
push(@redirect_params, contact_id => $self->{contact}->cp_id); |
|
157 |
} |
|
158 |
|
|
159 |
if ( $self->{shipto}->shipto_id ) { |
|
160 |
push(@redirect_params, shipto_id => $self->{shipto}->shipto_id); |
|
161 |
} |
|
162 |
|
|
163 |
$self->redirect_to(@redirect_params); |
|
150 | 164 |
} |
151 | 165 |
|
152 | 166 |
sub action_save_and_close { |
Auch abrufbar als: Unified diff
Ansprechperson und Lieferadresse nach Speichern von Kunden wiederöffnen