From d17d97dfb67b523d185521df4c17ab7dca27d236 Mon Sep 17 00:00:00 2001 From: Tim Wagner <tim.wagner@sgalinski.de> Date: Mon, 7 Oct 2019 19:01:54 +0200 Subject: [PATCH] [TASK] Set EUR as default salary currency --- Classes/Domain/Model/Job.php | 2 +- Configuration/TCA/tx_sgjobs_domain_model_job.php | 1 + ext_tables.sql | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Classes/Domain/Model/Job.php b/Classes/Domain/Model/Job.php index f54da47f..a5846b8d 100644 --- a/Classes/Domain/Model/Job.php +++ b/Classes/Domain/Model/Job.php @@ -120,7 +120,7 @@ class Job extends AbstractEntity { /** * @var string $salaryCurrency */ - protected $salaryCurrency = ''; + protected $salaryCurrency = 'EUR'; /** * @var string $salaryUnit diff --git a/Configuration/TCA/tx_sgjobs_domain_model_job.php b/Configuration/TCA/tx_sgjobs_domain_model_job.php index 69657e3e..b3600320 100644 --- a/Configuration/TCA/tx_sgjobs_domain_model_job.php +++ b/Configuration/TCA/tx_sgjobs_domain_model_job.php @@ -397,6 +397,7 @@ return call_user_func( 'type' => 'input', 'eval' => 'alpha, upper', 'max' => 3, + 'default' => 'EUR', ], ], 'salary_unit' => [ diff --git a/ext_tables.sql b/ext_tables.sql index 97221a3b..4d1c08a1 100644 --- a/ext_tables.sql +++ b/ext_tables.sql @@ -14,7 +14,7 @@ CREATE TABLE tx_sgjobs_domain_model_job ( employment_types text DEFAULT '' NOT NULL, date_posted int(11) unsigned DEFAULT '0' NOT NULL, valid_through int(11) unsigned DEFAULT '0' NOT NULL, - salary_currency varchar(3) DEFAULT '' NOT NULL, + salary_currency varchar(3) DEFAULT 'EUR' NOT NULL, base_salary varchar(15) DEFAULT '' NOT NULL, max_salary varchar(15) DEFAULT '' NOT NULL, salary_unit varchar(5) DEFAULT '' NOT NULL, -- GitLab