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

[FEATURE] Only filter 100% remote jobs with the overview filter

parent 58536a00
No related branches found
No related tags found
No related merge requests found
......@@ -226,7 +226,10 @@ class JobRepository extends Repository {
}
if (isset($filters['filterRemote']) && $filters['filterRemote'] !== '') {
$constraints[] = $query->equals('telecommutePossible', TRUE);
$constraints[] = $query->logicalAnd([
$query->equals('telecommutePossible', TRUE),
$query->equals('office_work_possible', FALSE)
]);
}
if (isset($filters['filterLocation']) && $filters['filterLocation'] !== '0') {
......
......@@ -371,8 +371,8 @@
<target><![CDATA[Standort]]></target>
</trans-unit>
<trans-unit id="frontend.filter.remote" approved="yes">
<source><![CDATA[Show only home office jobs]]></source>
<target><![CDATA[Zeige nur Home-Office-Stellen]]></target>
<source><![CDATA[Show fully remote jobs only]]></source>
<target><![CDATA[Zeige nur Stellen komplett im Homeoffice]]></target>
</trans-unit>
<trans-unit id="frontend.filter.selections.all" approved="yes">
<source><![CDATA[All]]></source>
......
......@@ -280,7 +280,7 @@
<source><![CDATA[Location]]></source>
</trans-unit>
<trans-unit id="frontend.filter.remote">
<source><![CDATA[Show only home office jobs]]></source>
<source><![CDATA[Show fully remote jobs only]]></source>
</trans-unit>
<trans-unit id="frontend.filter.selections.all">
<source><![CDATA[All]]></source>
......
......@@ -214,8 +214,8 @@
<target><![CDATA[地点]]></target>
</trans-unit>
<trans-unit id="frontend.filter.remote" approved="yes">
<source><![CDATA[Show only home office jobs]]></source>
<target><![CDATA[Show only jobs that can be executed remotely.]]></target>
<source><![CDATA[Show fully remote jobs only]]></source>
<target><![CDATA[Show fully remote jobs only]]></target>
</trans-unit>
<trans-unit id="frontend.filter.selections.all" approved="yes">
<source><![CDATA[All]]></source>
......@@ -239,4 +239,4 @@
</trans-unit>
</body>
</file>
</xliff>
\ No newline at end of file
</xliff>
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