mirror of
https://github.com/grocy/grocy.git
synced 2025-10-14 17:24:07 +00:00
Consume any subproduct when consuming a recipe ingredient which is not in stock (fixes #446)
This commit is contained in:
@@ -82,7 +82,7 @@ function SumArrayValue($array, $propertyName)
|
||||
$sum = 0;
|
||||
foreach($array as $object)
|
||||
{
|
||||
$sum += $object->{$propertyName};
|
||||
$sum += floatval($object->{$propertyName});
|
||||
}
|
||||
|
||||
return $sum;
|
||||
|
Reference in New Issue
Block a user