From 3d86c4ae10a3a1ad457813979d2ce9787d544a18 Mon Sep 17 00:00:00 2001 From: AlexJoom Date: Fri, 7 Jul 2023 16:26:21 +0300 Subject: [PATCH] Allow zero prices also at TMI forum container --- app/BusinessLogicLayer/TMForumAPI/TMForumAPIManager.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/BusinessLogicLayer/TMForumAPI/TMForumAPIManager.php b/app/BusinessLogicLayer/TMForumAPI/TMForumAPIManager.php index 6666fd8..780a865 100644 --- a/app/BusinessLogicLayer/TMForumAPI/TMForumAPIManager.php +++ b/app/BusinessLogicLayer/TMForumAPI/TMForumAPIManager.php @@ -131,8 +131,6 @@ protected function validateProductCall(array $data) { throw new Exception("Product name is required"); if (!$data['description']) throw new Exception("Product description is required"); - if (!$data['price']) - throw new Exception("Product price is required"); if (!is_numeric($data['price'])) throw new Exception("Product price must be a number"); }