Revision faf91cb3
Von Bernd Bleßmann vor 11 Monaten hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
124 | 124 |
# Warn on order locked items if they are not wanted for this record type |
125 | 125 |
if ($self->type_data->no_order_locked_parts) { |
126 | 126 |
my @order_locked_positions = map { $_->position } grep { $_->part->order_locked } @{ $self->order->items_sorted }; |
127 |
flash('warning', t8('This record containts not orderable items at position #1', join ', ', @order_locked_positions)) if @order_locked_positions;
|
|
127 |
flash('warning', t8('This record contains not orderable items at position #1', join ', ', @order_locked_positions)) if @order_locked_positions; |
|
128 | 128 |
} |
129 | 129 |
|
130 | 130 |
$self->recalc(); |
... | ... | |
336 | 336 |
|
337 | 337 |
# Warn on obsolete items |
338 | 338 |
my @obsolete_positions = map { $_->position } grep { $_->part->obsolete } @{ $self->order->items_sorted }; |
339 |
flash_later('warning', t8('This record containts obsolete items at position #1', join ', ', @obsolete_positions)) if @obsolete_positions;
|
|
339 |
flash_later('warning', t8('This record contains obsolete items at position #1', join ', ', @obsolete_positions)) if @obsolete_positions; |
|
340 | 340 |
|
341 | 341 |
# Warn on order locked items if they are not wanted for this record type |
342 | 342 |
if ($self->type_data->no_order_locked_parts) { |
343 | 343 |
my @order_locked_positions = map { $_->position } grep { $_->part->order_locked } @{ $self->order->items_sorted }; |
344 |
flash_later('warning', t8('This record containts not orderable items at position #1', join ', ', @order_locked_positions)) if @order_locked_positions;
|
|
344 |
flash_later('warning', t8('This record contains not orderable items at position #1', join ', ', @order_locked_positions)) if @order_locked_positions; |
|
345 | 345 |
} |
346 | 346 |
|
347 | 347 |
if (!$::form->{form_validity_token}) { |
... | ... | |
970 | 970 |
# Warn on order locked items if they are not wanted for this record type |
971 | 971 |
if ($self->type_data->no_order_locked_parts) { |
972 | 972 |
my @order_locked_positions = map { $_->position } grep { $_->part->order_locked } @{ $self->order->items_sorted }; |
973 |
flash('warning', t8('This record containts not orderable items at position #1', join ', ', @order_locked_positions)) if @order_locked_positions;
|
|
973 |
flash('warning', t8('This record contains not orderable items at position #1', join ', ', @order_locked_positions)) if @order_locked_positions; |
|
974 | 974 |
} |
975 | 975 |
|
976 | 976 |
$self->recalc(); |
... | ... | |
2111 | 2111 |
# Test for order locked items if they are not wanted for this record type. |
2112 | 2112 |
if ($self->type_data->no_order_locked_parts) { |
2113 | 2113 |
my @order_locked_positions = map { $_->position } grep { $_->part->order_locked } @{ $self->order->items_sorted }; |
2114 |
die t8('This record containts not orderable items at position #1', join ', ', @order_locked_positions) if @order_locked_positions;
|
|
2114 |
die t8('This record contains not orderable items at position #1', join ', ', @order_locked_positions) if @order_locked_positions; |
|
2115 | 2115 |
} |
2116 | 2116 |
|
2117 | 2117 |
# create first version if none exists |
Auch abrufbar als: Unified diff
Typo in englischer Warnung/Fehlermeldung