Skip to content

Commit

Permalink
[BUGFIX] Fix different TCA issues which break backend record editor
Browse files Browse the repository at this point in the history
- FIX #72770, #72775
  • Loading branch information
daniellienert committed Jan 17, 2016
1 parent ca34da2 commit 6e29a9d
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 11 deletions.
14 changes: 11 additions & 3 deletions Configuration/TCA/tx_yag_domain_model_album.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@
'type' => 'script',
'title' => 'Full screen Rich Text Editing',
'icon' => 'wizard_rte2.gif',
'module' => array(
'name' => 'wizard_rte'
),
'script' => 'wizard_rte.php',
),
),
Expand Down Expand Up @@ -187,6 +190,9 @@
'type' => 'popup',
'title' => 'Edit',
'script' => 'wizard_edit.php',
'module' => array(
'name' => 'wizard_edit'
),
'icon' => 'edit2.gif',
'popup_onlyOpenIfSelected' => 1,
'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
Expand All @@ -201,6 +207,9 @@
'setValue' => 'prepend'
),
'script' => 'wizard_add.php',
'module' => array(
'name' => 'wizard_add'
)
),
),
),
Expand All @@ -220,7 +229,7 @@
'showSynchronizationLink' => 0,
'showPossibleLocalizationRecords' => 1,
'showAllLocalizationLink' => 1,
'showPossibleRecordsSelector' => 1,
'showPossibleRecordsSelector' => false,
'enabledControls' => array('new' => false, 'delete' => false, 'hide' => false)
),
'behaviour' => array(
Expand All @@ -236,7 +245,6 @@
'type' => 'inline',
'foreign_table' => 'tx_yag_domain_model_item',
'foreign_field' => 'album',
'foreign_selector' => 'uid',
'minitems' => 0,
'maxitems' => 9999,
'appearance' => array(
Expand All @@ -245,7 +253,7 @@
'showSynchronizationLink' => false,
'showPossibleLocalizationRecords' => true,
'showAllLocalizationLink' => true,
'showPossibleRecordsSelector' => true,
'showPossibleRecordsSelector' => false,
'enabledControls' => array('new' => false, 'delete' => false, 'hide' => false)
),
)
Expand Down
6 changes: 4 additions & 2 deletions Configuration/TCA/tx_yag_domain_model_gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@
'title' => 'Full screen Rich Text Editing',
'icon' => 'wizard_rte2.gif',
'script' => 'wizard_rte.php',
'module' => array(
'name' => 'wizard_rte'
)
),
),
)
Expand Down Expand Up @@ -179,7 +182,6 @@
'type' => 'inline',
'foreign_table' => 'tx_yag_domain_model_album',
'foreign_field' => 'gallery',
'foreign_selector' => 'uid',
'foreign_sortby' => 'sorting',
'minitems' => 0,
'maxitems' => 9999,
Expand All @@ -200,7 +202,7 @@
'config' => array(
'type' => 'inline',
'foreign_table' => 'tx_yag_domain_model_album',
'foreign_selector' => 'uid',
'foreign_field' => 'uid',
'minitems' => 1,
'maxitems' => 1,
'appearance' => array(
Expand Down
24 changes: 18 additions & 6 deletions Configuration/TCA/tx_yag_domain_model_item.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@
'title' => 'Full screen Rich Text Editing',
'icon' => 'wizard_rte2.gif',
'script' => 'wizard_rte.php',
'module' => array(
'name' => 'wizard_rte'
)
),
),
)
Expand Down Expand Up @@ -222,6 +225,9 @@
'icon' => 'link_popup.gif',
'script' => 'browse_links.php?mode=wizard',
'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1',
'module' => array(
'name' => 'wizard_link'
)
),
),
'softref' => 'typolink',
Expand Down Expand Up @@ -281,6 +287,9 @@
'icon' => 'edit2.gif',
'popup_onlyOpenIfSelected' => 1,
'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
'module' => array(
'name' => 'wizard_edit'
)
),
'add' => array(
'type' => 'script',
Expand All @@ -292,6 +301,9 @@
'setValue' => 'prepend'
),
'script' => 'wizard_add.php',
'module' => array(
'name' => 'wizard_add'
)
),
),
),
Expand All @@ -314,6 +326,9 @@
'icon' => 'edit2.gif',
'popup_onlyOpenIfSelected' => 1,
'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
'module' => array(
'name' => 'wizard_edit'
)
),
'add' => array(
'type' => 'script',
Expand All @@ -325,17 +340,14 @@
'setValue' => 'prepend'
),
'script' => 'wizard_add.php',
'module' => array(
'name' => 'wizard_add'
)
),
),
),
),

'album' => array(
'config' => array(
'type' => 'passthrough',
),
),

'tags' => array(
'exclude' => 0,
'label' => 'LLL:EXT:yag/Resources/Private/Language/locallang_db.xlf:tx_yag_domain_model_item.tags',
Expand Down
6 changes: 6 additions & 0 deletions Configuration/TCA/tx_yag_domain_model_itemmeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,9 @@
'icon' => 'edit2.gif',
'popup_onlyOpenIfSelected' => 1,
'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
'module' => array(
'name' => 'wizard_edit'
)
),
'add' => array(
'type' => 'script',
Expand All @@ -324,6 +327,9 @@
'setValue' => 'prepend'
),
'script' => 'wizard_add.php',
'module' => array(
'name' => 'wizard_add'
)
),
),
),
Expand Down
6 changes: 6 additions & 0 deletions Configuration/TCA/tx_yag_domain_model_resolutionfilecache.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@
'icon' => 'edit2.gif',
'popup_onlyOpenIfSelected' => 1,
'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
'module' => array(
'name' => 'wizard_edit'
)
),
'add' => array(
'type' => 'script',
Expand All @@ -90,6 +93,9 @@
'setValue' => 'prepend'
),
'script' => 'wizard_add.php',
'module' => array(
'name' => 'wizard_add'
)
),
),
),
Expand Down

0 comments on commit 6e29a9d

Please sign in to comment.