From: Bryan Mason Date: Thu, 16 Sep 2021 00:59:22 +0000 (-0700) Subject: scheduler/ipp.c: Change job state to IPP_JOB_HELD when job is restarted with appropri... X-Git-Tag: v2.4b1~46^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21a6206d01a95eb209d83d1016a9f1fa876b5eed;p=thirdparty%2Fcups.git scheduler/ipp.c: Change job state to IPP_JOB_HELD when job is restarted with appropriate job-held-until attribute. --- diff --git a/scheduler/ipp.c b/scheduler/ipp.c index dd5172c668..f95e84453a 100644 --- a/scheduler/ipp.c +++ b/scheduler/ipp.c @@ -9374,6 +9374,9 @@ restart_job(cupsd_client_t *con, /* I - Client connection */ "Restarted by \"%s\" with job-hold-until=%s.", username, attr->values[0].string.text); cupsdSetJobHoldUntil(job, attr->values[0].string.text, 0); + cupsdSetJobState(job, IPP_JOB_HELD, CUPSD_JOB_DEFAULT, + "Job restarted by user with job-hold-until=%s", + attr->values[0].string.text); cupsdAddEvent(CUPSD_EVENT_JOB_CONFIG_CHANGED | CUPSD_EVENT_JOB_STATE, NULL, job, "Job restarted by user with job-hold-until=%s",