Skip to content
Snippets Groups Projects
Commit c6ef364c authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[TASK] Remove interface showRecordFieldList for TYPO3 10

parent eb7923af
No related branches found
No related tags found
1 merge request!23Feature upgrade to typo3 10
......@@ -26,7 +26,7 @@
return call_user_func(
function ($extKey, $table) {
return [
$columns = [
'ctrl' => [
'title' => 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_db.xlf:' . $table,
'label' => 'name',
......@@ -50,9 +50,7 @@ return call_user_func(
'sortby' => 'sorting',
'iconfile' => 'EXT:' . $extKey . '/Resources/Public/Icons/' . $table . '.svg'
],
'interface' => [
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, pid, job_id, zip, city, street name, state, country, description, contact',
],
'interface' => [],
'types' => [
'1' => [
'showitem' => '--palette--;;sysLanguageAndHidden,
......@@ -262,5 +260,10 @@ return call_user_func(
],
],
];
if (version_compare(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version(), '10.3.0', '<')) {
$columns['interface']['showRecordFieldList'] = 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, pid, job_id, zip, city, street name, state, country, description, contact';
}
return $columns;
}, 'sg_jobs', 'tx_sgjobs_domain_model_company'
);
......@@ -26,7 +26,7 @@
return call_user_func(
function ($extKey, $table) {
return [
$columns = [
'ctrl' => [
'title' => 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_db.xlf:' . $table,
'label' => 'last_name',
......@@ -52,9 +52,7 @@ return call_user_func(
'sortby' => 'sorting',
'iconfile' => 'EXT:' . $extKey . '/Resources/Public/Icons/' . $table . '.svg'
],
'interface' => [
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, pid, title, first_name, last_name, street, city, zip, email, phone, image, hide_in_frontend',
],
'interface' => [],
'types' => [
'1' => [
'showitem' => '--palette--;;sysLanguageAndHidden,
......@@ -247,5 +245,10 @@ return call_user_func(
]
],
];
if (version_compare(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version(), '10.3.0', '<')) {
$columns['interface']['showRecordFieldList'] = 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, pid, title, first_name, last_name, street, city, zip, email, phone, image, hide_in_frontend';
}
return $columns;
}, 'sg_jobs', 'tx_sgjobs_domain_model_contact'
);
......@@ -25,7 +25,7 @@
return call_user_func(
function ($extKey, $table) {
return [
$columns = [
'ctrl' => [
'title' => 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_db.xlf:' . $table,
'label' => 'title',
......@@ -50,9 +50,7 @@ return call_user_func(
'sortby' => 'sorting',
'iconfile' => 'EXT:' . $extKey . '/Resources/Public/Icons/' . $table . '.svg'
],
'interface' => [
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, pid, title',
],
'interface' => [],
'types' => [
'1' => [
'showitem' => '--palette--;;sysLanguageAndHidden,
......@@ -162,6 +160,10 @@ return call_user_func(
]
],
];
if (version_compare(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version(), '10.3.0', '<')) {
$columns['interface']['showRecordFieldList'] = 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, pid, title';
}
return $columns;
}, 'sg_jobs', 'tx_sgjobs_domain_model_department'
);
......@@ -25,7 +25,7 @@
return call_user_func(
function ($extKey, $table) {
return [
$columns = [
'ctrl' => [
'title' => 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_db.xlf:' . $table,
'label' => 'title',
......@@ -50,9 +50,7 @@ return call_user_func(
'sortby' => 'sorting',
'iconfile' => 'EXT:' . $extKey . '/Resources/Public/Icons/' . $table . '.svg'
],
'interface' => [
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, pid, title',
],
'interface' => [],
'types' => [
'1' => [
'showitem' => '--palette--;;sysLanguageAndHidden,
......@@ -162,6 +160,10 @@ return call_user_func(
]
],
];
if (version_compare(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version(), '10.3.0', '<')) {
$columns['interface']['showRecordFieldList'] = 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, pid, title';
}
return $columns;
}, 'sg_jobs', 'tx_sgjobs_domain_model_experience_level'
);
......@@ -30,7 +30,7 @@ return call_user_func(
'tx_sgjobs_domain_model_job',
''
);
return [
$columns = [
'ctrl' => [
'title' => 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_db.xlf:' . $table . '',
'label' => 'title',
......@@ -54,10 +54,7 @@ return call_user_func(
'sortby' => 'sorting',
'iconfile' => 'EXT:' . $extKey . '/Resources/Public/Icons/' . $table . '.svg'
],
'interface' => [
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, pid, title, path_segment, job_id, department, experience_level, hide_apply_by_email, hide_apply_by_postal, featured_offer, start_date, alternative_start_date,
company, task, qualification, description, contact, telecommute, employment_types, date_posted, valid_through, salary_currency, base_salary, max_salary, salary_unit,'
],
'interface' => [],
'types' => [
'1' => [
'showitem' => '--palette--;;sysLanguageAndHidden, --palette--;;palette_title,
......@@ -500,6 +497,11 @@ return call_user_func(
],
],
];
if (version_compare(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version(), '10.3.0', '<')) {
$columns['interface']['showRecordFieldList'] = 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, pid, title, path_segment, job_id, department, experience_level, hide_apply_by_email, hide_apply_by_postal, featured_offer, start_date, alternative_start_date,company, task, qualification, description, contact, telecommute, employment_types, date_posted, valid_through, salary_currency, base_salary, max_salary, salary_unit';
}
return $columns;
}, 'sg_jobs', 'tx_sgjobs_domain_model_job'
);
......@@ -26,7 +26,7 @@
return call_user_func(
function ($extKey, $table) {
return [
$columns = [
'ctrl' => [
'title' => 'LLL:EXT:' . $extKey . '/Resources/Private/Language/locallang_db.xlf:' . $table . '_application',
'label' => 'last_name',
......@@ -52,10 +52,7 @@ return call_user_func(
'sortby' => 'sorting',
'iconfile' => 'EXT:' . $extKey . '/Resources/Public/Icons/' . $table . '.svg'
],
'interface' => [
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, pid, job, job_id, job_title, company, department, experience_level, start_date, alternative_start_date,
company, task, qualification, description, contact, privacy_policy',
],
'interface' => [],
'types' => [
'1' => [
'showitem' => '--palette--;;sysLanguageAndHidden,job_id, job, job_title, company, gender, first_name, last_name, street, city, zip,
......@@ -374,6 +371,11 @@ return call_user_func(
]
],
];
if (version_compare(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version(), '10.3.0', '<')) {
$columns['interface']['showRecordFieldList'] = 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, pid, job, job_id, job_title, company, department, experience_level, start_date, alternative_start_date,company, task, qualification, description, contact, privacy_policy';
}
return $columns;
}, 'sg_jobs', 'tx_sgjobs_domain_model_job'
);
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