From 2e1b486eddce9f07ee80a937f6f2e1cddcf754b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Fri, 13 Nov 2015 13:14:47 +0100 Subject: [PATCH] Auftrags-Controller: Mehrfach-Artikelauswahl: qty as number --- SL/Controller/Order.pm | 4 ++-- templates/webpages/order/tabs/_multi_items_result.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 968367637..2773f2c1e 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -360,8 +360,8 @@ sub action_multi_items_update_result { sub action_add_multi_items { my ($self) = @_; - my @form_attr = grep { $_->{qty} } @{ $::form->{add_multi_items} }; - return unless scalar @form_attr; + my @form_attr = grep { $_->{qty_as_number} } @{ $::form->{add_multi_items} }; + return $self->js->render() unless scalar @form_attr; my @items; foreach my $attr (@form_attr) { diff --git a/templates/webpages/order/tabs/_multi_items_result.html b/templates/webpages/order/tabs/_multi_items_result.html index 381a82485..17f90334b 100644 --- a/templates/webpages/order/tabs/_multi_items_result.html +++ b/templates/webpages/order/tabs/_multi_items_result.html @@ -13,7 +13,7 @@ [% L.hidden_tag("add_multi_items[+].parts_id", item.id) %] - [% L.input_tag("add_multi_items[].qty", '', size = 5, style='text-align:right', + [% L.input_tag("add_multi_items[].qty_as_number", '', size = 5, style='text-align:right', class = 'multi_items_qty', onclick = 'set_qty_to_one(this)') %] [% HTML.escape(item.unit) %] @@ -26,7 +26,7 @@