Skip to content

Commit

Permalink
Removed creation of non-existing DCA palettes which caused problems i…
Browse files Browse the repository at this point in the history
…n the backend opening some subpalettes
  • Loading branch information
hschottm committed Nov 26, 2019
1 parent ebd99af commit 936be13
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions dca/tl_calendar_events.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ public function onCopy($dc)
$GLOBALS['TL_DCA']['tl_calendar_events']['config']['ondelete_callback'][] = array('tl_calendar_events_tags', 'deleteEvents');
$GLOBALS['TL_DCA']['tl_calendar_events']['config']['onload_callback'][] = array('tl_calendar_events_tags', 'onCopy');
$GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['default'] = str_replace("author", "author,tags", $GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['default']);
$GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['internal'] = str_replace("author", "author,tags", $GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['internal']);
$GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['external'] = str_replace("author", "author,tags", $GLOBALS['TL_DCA']['tl_calendar_events']['palettes']['external']);
}
$GLOBALS['TL_DCA']['tl_calendar_events']['fields']['tags'] = array
(
Expand Down
2 changes: 0 additions & 2 deletions dca/tl_news.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ public function onCopy($dc)
$GLOBALS['TL_DCA']['tl_news']['config']['ondelete_callback'][] = array('tl_news_tags', 'deleteNews');
$GLOBALS['TL_DCA']['tl_news']['config']['onload_callback'][] = array('tl_news_tags', 'onCopy');
$GLOBALS['TL_DCA']['tl_news']['palettes']['default'] = str_replace("author", "author,tags", $GLOBALS['TL_DCA']['tl_news']['palettes']['default']);
$GLOBALS['TL_DCA']['tl_news']['palettes']['internal'] = str_replace("author", "author,tags", $GLOBALS['TL_DCA']['tl_news']['palettes']['internal']);
$GLOBALS['TL_DCA']['tl_news']['palettes']['external'] = str_replace("author", "author,tags", $GLOBALS['TL_DCA']['tl_news']['palettes']['external']);
}

$GLOBALS['TL_DCA']['tl_news']['fields']['tags'] = array
Expand Down

0 comments on commit 936be13

Please sign in to comment.