This commit is contained in:
hufangzhou
2024-04-28 14:37:20 +08:00
parent d6dfeff78a
commit 5d7554110d
+1 -1
View File
@@ -104,7 +104,7 @@ class projectZen extends project
if($hasProduct)
{
/* Check if products not empty. */
if(!$this->post->products || empty($this->post->products[0]))
if(!$this->post->products || (empty($this->post->products[0]) && !array_filter($this->post->products)))
{
dao::$errors['products[0]'] = $this->app->rawMethod == 'create' ? $this->lang->project->error->productNotEmpty : $this->lang->project->errorNoProducts;
return false;