Skip to content
Snippets Groups Projects
Commit 2525eb2a authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Removing nonsense field from contact model

parent acfb655f
No related branches found
No related tags found
1 merge request!3Version 1 5
......@@ -42,11 +42,6 @@ class Contact extends AbstractEntity {
*/
protected $lastName = '';
/**
* @var string $company
*/
protected $company = '';
/**
* @var string $city
*/
......@@ -100,20 +95,6 @@ class Contact extends AbstractEntity {
$this->lastName = $lastName;
}
/**
* @return string
*/
public function getCompany() {
return $this->company;
}
/**
* @param string $company
*/
public function setCompany(string $company) {
$this->company = $company;
}
/**
* @return string
*/
......
......@@ -8,7 +8,7 @@ return [
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'dividers2tabs' => TRUE,
'searchFields' => 'first_name, last_name, company, city, zip, email, phone, hide_in_frontend',
'searchFields' => 'first_name, last_name, city, zip, email, phone, hide_in_frontend',
'versioningWS' => 2,
'versioning_followPages' => TRUE,
'origUid' => 't3_origuid',
......@@ -26,12 +26,12 @@ return [
'Resources/Public/Icons/tx_sgjobs_domain_model_contact.svg'
],
'interface' => [
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, pid, first_name, last_name, company, city, zip, email, phone, hide_in_frontend',
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, pid, first_name, last_name, city, zip, email, phone, hide_in_frontend',
],
'types' => [
'1' => [
'showitem' => '--palette--;;sysLanguageAndHidden,
hide_in_frontend, first_name, last_name, company, city, zip, email, phone;;;richtext[*]:rte_transform[mode=ts],
hide_in_frontend, first_name, last_name, city, zip, email, phone;;;richtext[*]:rte_transform[mode=ts],
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime',
],
],
......@@ -145,15 +145,6 @@ return [
'eval' => 'trim, required'
],
],
'company' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_contact.company',
'config' => [
'type' => 'input',
'size' => 30,
'eval' => 'trim, required'
],
],
'city' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_contact.city',
......
......@@ -218,7 +218,7 @@ return [
],
'company' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.location',
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.company',
'config' => [
'type' => 'select',
'eval' => 'required',
......
......@@ -100,7 +100,6 @@ CREATE TABLE tx_sgjobs_domain_model_contact (
-- Custom fields
first_name varchar(255) DEFAULT '' NOT NULL,
last_name varchar(255) DEFAULT '' NOT NULL,
company int(11) unsigned DEFAULT '0' NOT NULL,
city varchar(255) DEFAULT '' NOT NULL,
zip varchar(255) DEFAULT '' NOT NULL,
email varchar(255) DEFAULT '' NOT NULL,
......
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