Skip to content
Snippets Groups Projects
Commit ea317244 authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[BUGFIX] Fix link to wrong jobs detail page in the teasers plugin

parent 090d0a34
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,14 @@ class JobTeaserController extends ActionController {
/**
* @var JobRepository
*/
private $jobRepository;
protected $jobRepository;
/**
* @param JobRepository $jobRepository
*/
public function injectJobRepository(JobRepository $jobRepository) {
$this->jobRepository = $jobRepository;
}
/**
* Get marked offers and display them
......@@ -61,11 +68,4 @@ class JobTeaserController extends ActionController {
$this->view->assign('filteredLocations', !empty($allowedLocations));
$this->view->assign('featuredOffers', $featuredOffers);
}
/**
* @param JobRepository $jobRepository
*/
public function injectJobRepository(JobRepository $jobRepository) {
$this->jobRepository = $jobRepository;
}
}
......@@ -8,7 +8,7 @@
<ul class="sgjobs-job-offers-teaser-list">
<f:for each="{featuredOffers}" as="offer">
<li>
<f:link.action pageUid="{settings.offersPage}" controller="Joblist" action="index"
<f:link.action pageUid="{settings.applyPage}" controller="Joblist" action="index"
pluginName="Joblist" arguments="{jobId: offer.uid}">
{offer.title}
</f:link.action>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment