Skip to content

Commit

Permalink
Allow zero prices also at TMI forum container
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexJoom committed Jul 7, 2023
1 parent fb017a4 commit 3d86c4a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/BusinessLogicLayer/TMForumAPI/TMForumAPIManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 3d86c4a

Please sign in to comment.