Merge pull request #1788 from andreheuer/master

Fixed battery label printing
This commit is contained in:
Bernd Bestel 2022-02-16 08:42:49 +01:00 committed by GitHub
commit 486a58909d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)