Skip to content

Commit

Permalink
Fix: Changed jobs not shown in Admin's Orders list
Browse files Browse the repository at this point in the history
  • Loading branch information
TiSiE committed Oct 6, 2017
1 parent 6a7adca commit e026351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/Jobs/view/jobs/admin/index.ajax.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ $isRecruiter = $this->acl()->isRole( Auth\Entity\User::ROLE_RECRUITER );
<a href="<?php echo $this->url('lang/jobs/approval', array('action' => 'edit'), array('query' => array('id' => $job->getId())), true) ?>" class="btn btn-success btn-xs"><span class="yk-icon fa-check"></span></a>
<?php endif ?>
<?php if (\Jobs\Entity\StatusInterface::WAITING_FOR_APPROVAL == $job->getStatus()->getName()):
$snapshot = $this->services('repositories.Jobs/JobSnapshot')->findLatest($job->getId(), true);?>
$snapshot = $isSnapshot ? $job : $this->services('repositories.Jobs/JobSnapshot')->findLatest($job->getId(), true);?>
<a href="<?php echo $this->url('lang/jobs/approval', array('action' => 'edit'), array('query' => array('snapshot' => $snapshot->getSnapshotId())), true) ?>" class="btn btn-success btn-xs"><span class="yk-icon fa-check"></span></a>
<?php endif ?>
<a data-jobtitle="<?=$job->getTitle()?>" href="<?=$this->ajaxUrl('jobs.delete', ['id' => $job->getId()])?>" class="delete-link btn btn-danger btn-xs" title="<?=$this->translate('Delete')?>">
Expand Down

0 comments on commit e026351

Please sign in to comment.