diff --git a/Classes/Domain/Model/Job.php b/Classes/Domain/Model/Job.php index f54da47fd81a8fa6af9f09e75916f3d53a43eb35..a5846b8d0ef551425a037f9ab15ee486a15dc522 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 69657e3ef3d2460b31387df45d4f58624d5098e2..b36003207509d4d5a725303d788a2bfdb06a8c9e 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 97221a3b84134eda237b7babe491f35ad6011946..4d1c08a103013834055e7677e934a47043b7ffab 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,