Fixed a theoretical (not relevant for SQLite) SQL injection possibility (references #2201)

This commit is contained in:
Bernd Bestel 2023-04-29 08:57:05 +02:00
parent a4992ff602
commit df4907f5d4
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -851,7 +851,7 @@ class StockService extends BaseService
return $returnData;
}
public function GetProductStockEntries($productId, $excludeOpened = false, $allowSubproductSubstitution = false)
public function GetProductStockEntries(int $productId, $excludeOpened = false, $allowSubproductSubstitution = false)
{
$sqlWhereProductId = 'product_id = ' . $productId;
if ($allowSubproductSubstitution)