From db43a4bf3a8d19c7f1496f109b5464daed20f188 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Heuer?= Date: Tue, 15 Feb 2022 23:02:07 +0100 Subject: [PATCH] Fixed battery label printing --- public/viewjs/batteryform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/viewjs/batteryform.js b/public/viewjs/batteryform.js index e4e731c0..973ed23c 100644 --- a/public/viewjs/batteryform.js +++ b/public/viewjs/batteryform.js @@ -88,7 +88,7 @@ $(document).on('click', '.battery-grocycode-label-print', function(e) e.preventDefault(); document.activeElement.blur(); - var batteryId = $(e.currentTarget).attr('data-chore-id'); + var batteryId = $(e.currentTarget).attr('data-battery-id'); Grocy.Api.Get('batteries/' + batteryId + '/printlabel', function(labelData) { if (Grocy.Webhooks.labelprinter !== undefined)