]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix bug in Get-Notifications content (job-id for printer subcriptions vs. notify...
authorMichael R Sweet <msweet@msweet.org>
Thu, 16 Jan 2025 13:11:40 +0000 (08:11 -0500)
committerMichael R Sweet <msweet@msweet.org>
Thu, 16 Jan 2025 13:11:40 +0000 (08:11 -0500)
scheduler/subscriptions.c

index 2bc0df689943803618d8ede0fb12ac8785d72a56..9c4ecb3061d3f3ce9edf54026826eb344ce0ed09 100644 (file)
@@ -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)