From 7be57fe932da25aa741841801049db822dba007e Mon Sep 17 00:00:00 2001 From: Matthias Richter Date: Thu, 18 Apr 2024 14:39:07 +0200 Subject: [PATCH] Fix TCA and table fields --- ...tx_mpdbcore_domain_model_publisheditem.php | 6 ++--- ...mpdbcore_domain_model_publishedsubitem.php | 4 +-- .../tx_mpdbcore_domain_model_publisher.php | 27 ------------------- ..._mpdbcore_domain_model_publisheraction.php | 3 +-- ext_tables.sql | 3 +-- 5 files changed, 7 insertions(+), 36 deletions(-) diff --git a/Configuration/TCA/tx_mpdbcore_domain_model_publisheditem.php b/Configuration/TCA/tx_mpdbcore_domain_model_publisheditem.php index f89e7b7..bf3195a 100755 --- a/Configuration/TCA/tx_mpdbcore_domain_model_publisheditem.php +++ b/Configuration/TCA/tx_mpdbcore_domain_model_publisheditem.php @@ -55,8 +55,8 @@ 'items' => [ ['', 0], ], - 'foreign_table' => 'tx_mpdbcore_domain_model_publishermakroitem', - 'foreign_table_where' => 'AND {#tx_mpdbcore_domain_model_publishermakroitem}.{#pid}=###CURRENT_PID### AND {#tx_mpdbcore_domain_model_publishermakroitem}.{#sys_language_uid} IN (-1,0)', + 'foreign_table' => 'tx_mpdbcore_domain_model_publisheditem', + 'foreign_table_where' => 'AND {#tx_mpdbcore_domain_model_publisheditem}.{#pid}=###CURRENT_PID### AND {#tx_mpdbcore_domain_model_publisheditem}.{#sys_language_uid} IN (-1,0)', ], ], 'l10n_diffsource' => [ @@ -420,7 +420,7 @@ 'config' => [ 'type' => 'inline', 'foreign_table' => 'tx_mpdbcore_domain_model_publishedsubitem', - 'foreign_field' => 'published_item', + 'foreign_field' => 'publisheditem', 'foreign_sortby' => 'sorting', 'maxitems' => 9999, 'appearance' => [ diff --git a/Configuration/TCA/tx_mpdbcore_domain_model_publishedsubitem.php b/Configuration/TCA/tx_mpdbcore_domain_model_publishedsubitem.php index 43210d2..5126928 100755 --- a/Configuration/TCA/tx_mpdbcore_domain_model_publishedsubitem.php +++ b/Configuration/TCA/tx_mpdbcore_domain_model_publishedsubitem.php @@ -256,7 +256,7 @@ 'config' => [ 'type' => 'select', 'renderType' => 'selectMultipleSideBySide', - 'foreign_table' => 'tx_dmnorm_domain_model_work', + 'foreign_table' => 'tx_dmnorm_domain_model_gndwork', 'MM' => 'tx_mpdbcore_publishedsubitem_work_mm', 'size' => 10, 'autoSizeMax' => 30, @@ -282,7 +282,7 @@ 'config' => [ 'type' => 'inline', 'foreign_table' => 'tx_mpdbcore_domain_model_publisheraction', - 'foreign_field' => 'published_subitem', + 'foreign_field' => 'publishedsubitem', 'foreign_sortby' => 'sorting', 'maxitems' => 9999, 'appearance' => [ diff --git a/Configuration/TCA/tx_mpdbcore_domain_model_publisher.php b/Configuration/TCA/tx_mpdbcore_domain_model_publisher.php index 43a2be0..55a47ed 100755 --- a/Configuration/TCA/tx_mpdbcore_domain_model_publisher.php +++ b/Configuration/TCA/tx_mpdbcore_domain_model_publisher.php @@ -176,32 +176,5 @@ 'default' => null, ], ], - 'responsible_persons' => [ - 'exclude' => true, - 'label' => 'LLL:EXT:mpdb_core/Resources/Private/Language/locallang_db.xlf:tx_mpdbcore_domain_model_publisher.responsible_persons', - 'config' => [ - 'type' => 'select', - 'renderType' => 'selectMultipleSideBySide', - 'foreign_table' => 'tx_mpdbcore_domain_model_role', - 'MM' => 'tx_mpdbcore_publisher_role_mm', - 'size' => 10, - 'autoSizeMax' => 30, - 'maxitems' => 9999, - 'multiple' => 0, - 'fieldControl' => [ - 'editPopup' => [ - 'disabled' => false, - ], - 'addRecord' => [ - 'disabled' => false, - ], - 'listModule' => [ - 'disabled' => true, - ], - ], - ], - - ], - ], ]; diff --git a/Configuration/TCA/tx_mpdbcore_domain_model_publisheraction.php b/Configuration/TCA/tx_mpdbcore_domain_model_publisheraction.php index 0ec07e9..c201f6d 100755 --- a/Configuration/TCA/tx_mpdbcore_domain_model_publisheraction.php +++ b/Configuration/TCA/tx_mpdbcore_domain_model_publisheraction.php @@ -186,8 +186,7 @@ 'default' => 0, ] ], - - 'publishermikroitem' => [ + 'publishedsubitem' => [ 'config' => [ 'type' => 'passthrough', ], diff --git a/ext_tables.sql b/ext_tables.sql index df41083..7372e64 100755 --- a/ext_tables.sql +++ b/ext_tables.sql @@ -11,7 +11,7 @@ CREATE TABLE tx_mpdbcore_domain_model_subiteminstrument ( # CREATE TABLE tx_mpdbcore_domain_model_publishedsubitem ( - publisher_makro_item int(11) unsigned DEFAULT '0' NOT NULL, + publisheditem int(11) unsigned DEFAULT '0' NOT NULL, plate_id varchar(255) DEFAULT '' NOT NULL, part varchar(255) DEFAULT '' NOT NULL, voice varchar(255) DEFAULT '' NOT NULL, @@ -88,7 +88,6 @@ CREATE TABLE tx_mpdbcore_domain_model_publisher ( alternate_name varchar(255) DEFAULT '' NOT NULL, active_from date DEFAULT NULL, active_to date DEFAULT NULL, - responsible_persons int(11) unsigned DEFAULT '0' NOT NULL, public smallint(5) unsigned DEFAULT '0' NOT NULL );