2
0
forked from Wavyzz/dolibarr

Prevent stock amount from becoming NULL

Set stock to 0 if NULL
This commit is contained in:
Rüdiger Hahn
2019-12-13 07:58:36 +01:00
committed by GitHub
parent cc96ad03c1
commit 4dd3cb3469

View File

@@ -2095,7 +2095,7 @@ class Form
}
else
{
$selectFieldsGrouped = ", p.stock";
$selectFieldsGrouped = ", ".$db->ifsql("p.stock IS NULL", 0, "p.stock")." AS stock";
}
$sql = "SELECT ";