Skip to content
Snippets Groups Projects

fix getDuplicateJobs fails due to $job->getId() returning an empy string

Merged xlyz requested to merge issue/advancedqueue-3495163:8.x-1.x into 8.x-1.x
@@ -213,7 +213,7 @@ class Database extends BackendBase implements SupportsDeletingJobsInterface, Sup
->condition('fingerprint', $fingerprint)
->condition('state', [Job::STATE_QUEUED, Job::STATE_PROCESSING], 'IN');
if ($job->getId() !== NULL) {
if (!empty($job->getId())) {
$query->condition('job_id', $job->getId(), '<>');
}
$result = $query->execute();
Loading