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