Skip to content

Commit

Permalink
scheduler: Fix reasons for previously printed jobs
Browse files Browse the repository at this point in the history
Before #832 most successfully finished jobs had incorrect
job state reasons - try to fix them during loading the jobs.
  • Loading branch information
zdohnal committed Jan 26, 2024
1 parent 259b671 commit 833423a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheduler/job.c
Original file line number Diff line number Diff line change
Expand Up @@ -1832,7 +1832,7 @@ cupsdLoadJob(cupsd_job_t *job) /* I - Job */
else
ippSetString(job->attrs, &job->reasons, 0, "none");
}
else if (job->state_value == IPP_JSTATE_COMPLETED && !strcmp(job->reasons, "processing-to-stop-point"))
else if (job->state_value == IPP_JSTATE_COMPLETED && !strcmp(ippGetString(job->reasons, 0, NULL), "processing-to-stop-point"))
{
/*
* Try to fix job reasons for older jobs finished before openprinting/cups #832 was applied...
Expand Down

0 comments on commit 833423a

Please sign in to comment.