From 9ff2730f399f481e174e7e9464285feb2806286a Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 9 Nov 2020 16:49:25 +0100 Subject: [PATCH] =?utf8?q?Neuer=20Angebots-/Auftragscontroller:=20Unterst?= =?utf8?q?=C3=BCtzung=20f=C3=BCr=20Artikel=C3=BCbersetzungen=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Bei Funktion »Artikeldaten aus Stammdaten holen«. Funktioniert noch nicht für die Langbeschreibung, weil die Funktion das von der Architektur her bisher gar nicht unterstützt. --- SL/Controller/Order.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 780e80ea2..b7eadbe08 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -1037,11 +1037,12 @@ sub action_update_row_from_master_data { my ($self) = @_; foreach my $item_id (@{ $::form->{item_ids} }) { - my $idx = first_index { $_ eq $item_id } @{ $::form->{orderitem_ids} }; - my $item = $self->order->items_sorted->[$idx]; + my $idx = first_index { $_ eq $item_id } @{ $::form->{orderitem_ids} }; + my $item = $self->order->items_sorted->[$idx]; + my $texts = get_part_texts($item->part, $self->order->language_id); - $item->description($item->part->description); - $item->longdescription($item->part->notes); + $item->description($texts->{description}); + $item->longdescription($texts->{longdescription}); my $price_source = SL::PriceSource->new(record_item => $item, record => $self->order); -- 2.20.1