From a1793753ea939c9649ecf231174d454adc57995c Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Fri, 1 Dec 2017 12:49:05 +0200 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20set=20qty=20to=201=20when=20sel?= =?UTF-8?q?ecting=20task=20item=20on=20invoice=20form?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/invoices/knockout.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/invoices/knockout.blade.php b/resources/views/invoices/knockout.blade.php index 3e5a336dc2c9..fac8149d970c 100644 --- a/resources/views/invoices/knockout.blade.php +++ b/resources/views/invoices/knockout.blade.php @@ -1022,7 +1022,7 @@ ko.bindingHandlers.productTypeahead = { model.cost(roundSignificant(datum.cost, true)); } } - if (!model.qty()) { + if (!model.qty() && ! model.task_public_id()) { model.qty(1); } @if ($account->invoice_item_taxes)