Skip to content

Commit

Permalink
Fix bug in Get-Notifications content (job-id for printer subcriptions…
Browse files Browse the repository at this point in the history
… vs. notify-job-id for job subscriptions)
  • Loading branch information
michaelrsweet committed Jan 16, 2025
1 parent 950fd50 commit f051c37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheduler/subscriptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f051c37

Please sign in to comment.