From 833423add9719c5c368560cdaf879185a43b1cb3 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 19 Jan 2024 13:35:53 +0100 Subject: [PATCH] scheduler: Fix reasons for previously printed jobs Before #832 most successfully finished jobs had incorrect job state reasons - try to fix them during loading the jobs. --- scheduler/job.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scheduler/job.c b/scheduler/job.c index 0e5ac281e9..469d185723 100644 --- a/scheduler/job.c +++ b/scheduler/job.c @@ -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...