112 |
112 |
$self->pre_render();
|
113 |
113 |
|
114 |
114 |
if (!$::form->{form_validity_token}) {
|
115 |
|
$::form->{form_validity_token} = SL::DB::ValidityToken->create(scope => SL::DB::ValidityToken::SCOPE_ORDER_SAVE())->token;
|
|
115 |
$::form->{form_validity_token} = SL::DB::ValidityToken->create(scope => SL::DB::ValidityToken::SCOPE_RECORD_SAVE())->token;
|
116 |
116 |
}
|
117 |
117 |
|
118 |
118 |
$self->render(
|
... | ... | |
188 |
188 |
$_->{render_second_row} = 1 for @{ $self->order->items_sorted };
|
189 |
189 |
|
190 |
190 |
if (!$::form->{form_validity_token}) {
|
191 |
|
$::form->{form_validity_token} = SL::DB::ValidityToken->create(scope => SL::DB::ValidityToken::SCOPE_ORDER_SAVE())->token;
|
|
191 |
$::form->{form_validity_token} = SL::DB::ValidityToken->create(scope => SL::DB::ValidityToken::SCOPE_RECORD_SAVE())->token;
|
192 |
192 |
}
|
193 |
193 |
}
|
194 |
194 |
|
... | ... | |
326 |
326 |
}
|
327 |
327 |
|
328 |
328 |
if (!$::form->{form_validity_token}) {
|
329 |
|
$::form->{form_validity_token} = SL::DB::ValidityToken->create(scope => SL::DB::ValidityToken::SCOPE_ORDER_SAVE())->token;
|
|
329 |
$::form->{form_validity_token} = SL::DB::ValidityToken->create(scope => SL::DB::ValidityToken::SCOPE_RECORD_SAVE())->token;
|
330 |
330 |
}
|
331 |
331 |
|
332 |
332 |
# save
|
... | ... | |
964 |
964 |
$_->{render_second_row} = 1 for @{ $self->order->items_sorted };
|
965 |
965 |
|
966 |
966 |
if (!$::form->{form_validity_token}) {
|
967 |
|
$::form->{form_validity_token} = SL::DB::ValidityToken->create(scope => SL::DB::ValidityToken::SCOPE_ORDER_SAVE())->token;
|
|
967 |
$::form->{form_validity_token} = SL::DB::ValidityToken->create(scope => SL::DB::ValidityToken::SCOPE_RECORD_SAVE())->token;
|
968 |
968 |
}
|
969 |
969 |
|
970 |
970 |
$self->render(
|
... | ... | |
1330 |
1330 |
$_->{render_longdescription} = 1 for @{ $self->order->items_sorted };
|
1331 |
1331 |
|
1332 |
1332 |
if (!$::form->{form_validity_token}) {
|
1333 |
|
$::form->{form_validity_token} = SL::DB::ValidityToken->create(scope => SL::DB::ValidityToken::SCOPE_ORDER_SAVE())->token;
|
|
1333 |
$::form->{form_validity_token} = SL::DB::ValidityToken->create(scope => SL::DB::ValidityToken::SCOPE_RECORD_SAVE())->token;
|
1334 |
1334 |
}
|
1335 |
1335 |
|
1336 |
1336 |
$self->render(
|
... | ... | |
2079 |
2079 |
: undef;
|
2080 |
2080 |
|
2081 |
2081 |
SL::Model::Record->save($self->order,
|
2082 |
|
with_validity_token => { scope => SL::DB::ValidityToken::SCOPE_ORDER_SAVE(), token => $::form->{form_validity_token} },
|
|
2082 |
with_validity_token => { scope => SL::DB::ValidityToken::SCOPE_RECORD_SAVE(), token => $::form->{form_validity_token} },
|
2083 |
2083 |
delete_custom_shipto => $self->is_custom_shipto_to_delete || $self->order->custom_shipto->is_empty,
|
2084 |
2084 |
items_to_delete => $items_to_delete,
|
2085 |
2085 |
objects_to_close => $objects_to_close,
|
S:D:ValidityToken: Scope von Order auf Record geändert ...