Skip to content

Commit

Permalink
Merge pull request #19 from dikastes/18-fix-tca-and-table-fields
Browse files Browse the repository at this point in the history
Fix TCA and table fields
  • Loading branch information
dikastes authored Apr 18, 2024
2 parents 8afacc1 + 7be57fe commit 2dcd997
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 36 deletions.
6 changes: 3 additions & 3 deletions Configuration/TCA/tx_mpdbcore_domain_model_publisheditem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
Expand Down Expand Up @@ -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' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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' => [
Expand Down
27 changes: 0 additions & 27 deletions Configuration/TCA/tx_mpdbcore_domain_model_publisher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
],
],
],

],

],
];
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,7 @@
'default' => 0,
]
],

'publishermikroitem' => [
'publishedsubitem' => [
'config' => [
'type' => 'passthrough',
],
Expand Down
3 changes: 1 addition & 2 deletions ext_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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

);
Expand Down

0 comments on commit 2dcd997

Please sign in to comment.