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)