Skip to content
Snippets Groups Projects
Commit 3378e129 authored by Matthias Adrowski's avatar Matthias Adrowski
Browse files

[TASK] Deprecate Job location field

parent c0513d50
No related branches found
No related tags found
1 merge request!35Feature upgrade to typo3 11
......@@ -96,6 +96,7 @@ class Job extends AbstractEntity {
protected $startDate = 0;
/**
* @deprecated, use mulitple Companies with different Locations instead
* @var string $location
*/
protected $location = '';
......
......@@ -358,7 +358,7 @@ $columns = [
'foreign_table_where' => ' AND tx_sgjobs_domain_model_company.sys_language_uid IN (0,-1) ORDER BY tx_sgjobs_domain_model_company.sorting ASC',
'minitems' => 1,
'maxitems' => 20,
'multiple' => 0,
'multiple' => 1,
'fieldControl' => [
'editPopup' => [
'disabled' => FALSE,
......
......@@ -51,10 +51,19 @@
</f:if>
</li>
<li>
<f:if condition="{job.location} && !{job.telecommutePossible}">
<f:if condition="!{job.telecommutePossible}">
<f:then>
<f:format.raw><f:translate key="frontend.locationLabel"/></f:format.raw>
{job.location}
<f:format.raw><f:translate key="frontend.locationLabel"/></f:format.raw><br>
<f:for as="company" each="{job.companies}">
<span class="sgjobs-company-location-wrap">
{company.name}<br>
{company.street}<br>
<f:if condition="{company.state}">
{company.state}<br>
</f:if>
{company.city}<br>
</span>
</f:for>
</f:then>
<f:else>
<f:format.raw><f:translate key="frontend.jobLocationRemote"/></f:format.raw>
......
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