Prevent stock amount from becoming NULL
Set stock to 0 if NULL
This commit is contained in:
parent
cc96ad03c1
commit
4dd3cb3469
@ -2095,7 +2095,7 @@ class Form
|
||||
}
|
||||
else
|
||||
{
|
||||
$selectFieldsGrouped = ", p.stock";
|
||||
$selectFieldsGrouped = ", ".$db->ifsql("p.stock IS NULL", 0, "p.stock")." AS stock";
|
||||
}
|
||||
|
||||
$sql = "SELECT ";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user