diff --git a/module/Jobs/view/jobs/admin/index.ajax.phtml b/module/Jobs/view/jobs/admin/index.ajax.phtml index 8a9f494f8..949705afe 100644 --- a/module/Jobs/view/jobs/admin/index.ajax.phtml +++ b/module/Jobs/view/jobs/admin/index.ajax.phtml @@ -101,8 +101,16 @@ $isRecruiter = $this->acl()->isRole( Auth\Entity\User::ROLE_RECRUITER ); getStatus()->getName()): - $snapshot = $isSnapshot ? $job : $this->services('repositories.Jobs/JobSnapshot')->findLatest($job->getId(), true);?> - + + $snapshot = $isSnapshot ? $job : $this->services('repositories.Jobs/JobSnapshot')->findLatest($job->getId(), true); + + if ($snapshot){ + $query=['snapshot' => $snapshot->getSnapshotId()]; + }else{ + $query=[]; + } + ?> +