From 7b8f8378965bcf20e06b8f624666fefb9116d4ec Mon Sep 17 00:00:00 2001 From: anwright Date: Sun, 14 Nov 2021 23:17:49 -0500 Subject: [PATCH] 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." --- services/StockService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/StockService.php b/services/StockService.php index 77016102..a7178e20 100644 --- a/services/StockService.php +++ b/services/StockService.php @@ -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,