From: Michael R Sweet Date: Thu, 16 Jan 2025 13:11:40 +0000 (-0500) Subject: Fix bug in Get-Notifications content (job-id for printer subcriptions vs. notify... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f051c379f97501547c4c6326dade6518b191adcf;p=thirdparty%2Fcups.git Fix bug in Get-Notifications content (job-id for printer subcriptions vs. notify-job-id for job subscriptions) --- diff --git a/scheduler/subscriptions.c b/scheduler/subscriptions.c index 2bc0df6899..9c4ecb3061 100644 --- a/scheduler/subscriptions.c +++ b/scheduler/subscriptions.c @@ -185,7 +185,7 @@ cupsdAddEvent( * Add job attributes... */ - ippAddInteger(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_INTEGER, "notify-job-id", job->id); + ippAddInteger(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_INTEGER, sub->job ? "notify-job-id" : "job-id", job->id); ippAddInteger(temp->attrs, IPP_TAG_EVENT_NOTIFICATION, IPP_TAG_ENUM, "job-state", (int)job->state_value); if ((attr = ippFindAttribute(job->attrs, "job-name", IPP_TAG_NAME)) != NULL)