From c8e0658351a0d38a564a9e56b7c0c5681786d3ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Sun, 24 Jan 2021 03:06:41 +0300 Subject: [PATCH] allow empty description --- app/Jobs/Document/CreateDocumentItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/Document/CreateDocumentItem.php b/app/Jobs/Document/CreateDocumentItem.php index 2f4b1455b..0bd014663 100644 --- a/app/Jobs/Document/CreateDocumentItem.php +++ b/app/Jobs/Document/CreateDocumentItem.php @@ -169,7 +169,7 @@ class CreateDocumentItem extends Job 'document_id' => $this->document->id, 'item_id' => $item_id, 'name' => Str::limit($this->request['name'], 180, ''), - 'description' => $this->request['description'], + 'description' => !empty($this->request['description']) ? $this->request['description'] : '', 'quantity' => (double) $this->request['quantity'], 'price' => round($this->request['price'], $precision), 'tax' => round($item_tax_total, $precision),