mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 12:26:15 +02:00
Don't print labels when asked not to
v3.1.3 prints a label no matter what, even if label printing is set to "No label."
This commit is contained in:
parent
33ca6070f4
commit
7b8f837896
|
|
@ -268,7 +268,7 @@ class StockService extends BaseService
|
|||
]);
|
||||
$stockRow->save();
|
||||
|
||||
if (GROCY_FEATURE_FLAG_LABEL_PRINTER && GROCY_LABEL_PRINTER_RUN_SERVER)
|
||||
if (GROCY_FEATURE_FLAG_LABEL_PRINTER && GROCY_LABEL_PRINTER_RUN_SERVER && $stockLabelType == 1)
|
||||
{
|
||||
$webhookData = array_merge([
|
||||
'product' => $productDetails->product->name,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user