From 3b3a551ab2151eb2013916734fae5d828f6011e7 Mon Sep 17 00:00:00 2001 From: Andreas Schempp Date: Tue, 14 Nov 2023 23:27:05 +0100 Subject: [PATCH] Also remove global operations in bundles (see #6530) Description ----------- Forgot to adjust bundles in https://github.com/contao/contao/pull/6528 Commits ------- eba6e349 Also remove global operations in bundles --- calendar-bundle/contao/dca/tl_calendar.php | 7 +------ calendar-bundle/contao/dca/tl_calendar_events.php | 9 --------- calendar-bundle/contao/dca/tl_calendar_feed.php | 9 --------- comments-bundle/contao/dca/tl_comments.php | 9 --------- core-bundle/contao/dca/tl_templates.php | 7 +------ faq-bundle/contao/dca/tl_faq.php | 9 --------- faq-bundle/contao/dca/tl_faq_category.php | 9 --------- news-bundle/contao/dca/tl_news.php | 9 --------- news-bundle/contao/dca/tl_news_archive.php | 9 --------- newsletter-bundle/contao/dca/tl_newsletter.php | 9 --------- newsletter-bundle/contao/dca/tl_newsletter_channel.php | 9 --------- .../contao/dca/tl_newsletter_recipients.php | 7 +------ 12 files changed, 3 insertions(+), 99 deletions(-) diff --git a/calendar-bundle/contao/dca/tl_calendar.php b/calendar-bundle/contao/dca/tl_calendar.php index 4d6e15d1b9d..b95fe5905ef 100644 --- a/calendar-bundle/contao/dca/tl_calendar.php +++ b/calendar-bundle/contao/dca/tl_calendar.php @@ -89,12 +89,7 @@ 'attributes' => 'onclick="Backend.getScrollOffset()"', 'button_callback' => array('tl_calendar', 'manageFeeds') ), - 'all' => array - ( - 'href' => 'act=select', - 'class' => 'header_edit_all', - 'attributes' => 'onclick="Backend.getScrollOffset()" accesskey="e"' - ) + 'all' ), 'operations' => array ( diff --git a/calendar-bundle/contao/dca/tl_calendar_events.php b/calendar-bundle/contao/dca/tl_calendar_events.php index 8d2b405ad10..f82464f308c 100644 --- a/calendar-bundle/contao/dca/tl_calendar_events.php +++ b/calendar-bundle/contao/dca/tl_calendar_events.php @@ -85,15 +85,6 @@ 'defaultSearchField' => 'title', 'child_record_callback' => array('tl_calendar_events', 'listEvents') ), - 'global_operations' => array - ( - 'all' => array - ( - 'href' => 'act=select', - 'class' => 'header_edit_all', - 'attributes' => 'onclick="Backend.getScrollOffset()" accesskey="e"' - ) - ), 'operations' => array ( 'edit', diff --git a/calendar-bundle/contao/dca/tl_calendar_feed.php b/calendar-bundle/contao/dca/tl_calendar_feed.php index 7220669f8fb..717fcb3432d 100644 --- a/calendar-bundle/contao/dca/tl_calendar_feed.php +++ b/calendar-bundle/contao/dca/tl_calendar_feed.php @@ -78,15 +78,6 @@ 'fields' => array('title'), 'format' => '%s' ), - 'global_operations' => array - ( - 'all' => array - ( - 'href' => 'act=select', - 'class' => 'header_edit_all', - 'attributes' => 'onclick="Backend.getScrollOffset()" accesskey="e"' - ), - ), 'operations' => array ( 'edit', diff --git a/comments-bundle/contao/dca/tl_comments.php b/comments-bundle/contao/dca/tl_comments.php index 59336fdf277..fdac59284e9 100644 --- a/comments-bundle/contao/dca/tl_comments.php +++ b/comments-bundle/contao/dca/tl_comments.php @@ -80,15 +80,6 @@ 'format' => '%s', 'label_callback' => array('tl_comments', 'listComments') ), - 'global_operations' => array - ( - 'all' => array - ( - 'href' => 'act=select', - 'class' => 'header_edit_all', - 'attributes' => 'onclick="Backend.getScrollOffset()" accesskey="e"' - ) - ), 'operations' => array ( 'edit' => array diff --git a/core-bundle/contao/dca/tl_templates.php b/core-bundle/contao/dca/tl_templates.php index c61a439e566..3fa5c399c4f 100644 --- a/core-bundle/contao/dca/tl_templates.php +++ b/core-bundle/contao/dca/tl_templates.php @@ -63,12 +63,7 @@ 'href' => 'key=new_tpl', 'class' => 'header_new' ), - 'toggleNodes' => array - ( - 'href' => 'tg=all', - 'class' => 'header_toggle', - 'showOnSelect' => true - ), + 'toggleNodes', 'all' ), 'operations' => array diff --git a/faq-bundle/contao/dca/tl_faq.php b/faq-bundle/contao/dca/tl_faq.php index 896b4dec38a..d418506b5e0 100644 --- a/faq-bundle/contao/dca/tl_faq.php +++ b/faq-bundle/contao/dca/tl_faq.php @@ -63,15 +63,6 @@ 'headerFields' => array('title', 'headline', 'jumpTo', 'tstamp', 'allowComments'), 'child_record_callback' => array('tl_faq', 'listQuestions'), 'renderAsGrid' => true - ), - 'global_operations' => array - ( - 'all' => array - ( - 'href' => 'act=select', - 'class' => 'header_edit_all', - 'attributes' => 'onclick="Backend.getScrollOffset()" accesskey="e"' - ) ) ), diff --git a/faq-bundle/contao/dca/tl_faq_category.php b/faq-bundle/contao/dca/tl_faq_category.php index 6370ab6ff7a..e82f10d2b3d 100644 --- a/faq-bundle/contao/dca/tl_faq_category.php +++ b/faq-bundle/contao/dca/tl_faq_category.php @@ -69,15 +69,6 @@ 'fields' => array('title'), 'format' => '%s' ), - 'global_operations' => array - ( - 'all' => array - ( - 'href' => 'act=select', - 'class' => 'header_edit_all', - 'attributes' => 'onclick="Backend.getScrollOffset()" accesskey="e"' - ) - ), 'operations' => array ( 'edit' => array diff --git a/news-bundle/contao/dca/tl_news.php b/news-bundle/contao/dca/tl_news.php index f305684335f..17460d9353b 100644 --- a/news-bundle/contao/dca/tl_news.php +++ b/news-bundle/contao/dca/tl_news.php @@ -76,15 +76,6 @@ 'fields' => array('headline', 'date', 'time'), 'format' => '%s [%s %s]', ), - 'global_operations' => array - ( - 'all' => array - ( - 'href' => 'act=select', - 'class' => 'header_edit_all', - 'attributes' => 'onclick="Backend.getScrollOffset()" accesskey="e"' - ) - ), 'operations' => array ( 'edit', diff --git a/news-bundle/contao/dca/tl_news_archive.php b/news-bundle/contao/dca/tl_news_archive.php index 1d52aa297c6..826776fa6ff 100644 --- a/news-bundle/contao/dca/tl_news_archive.php +++ b/news-bundle/contao/dca/tl_news_archive.php @@ -69,15 +69,6 @@ ( 'fields' => array('title'), 'format' => '%s' - ), - 'global_operations' => array - ( - 'all' => array - ( - 'href' => 'act=select', - 'class' => 'header_edit_all', - 'attributes' => 'onclick="Backend.getScrollOffset()" accesskey="e"' - ) ) ), diff --git a/newsletter-bundle/contao/dca/tl_newsletter.php b/newsletter-bundle/contao/dca/tl_newsletter.php index 2a6049ef3d2..9efb42c96ee 100644 --- a/newsletter-bundle/contao/dca/tl_newsletter.php +++ b/newsletter-bundle/contao/dca/tl_newsletter.php @@ -59,15 +59,6 @@ 'child_record_callback' => array('tl_newsletter', 'listNewsletters'), 'renderAsGrid' => true ), - 'global_operations' => array - ( - 'all' => array - ( - 'href' => 'act=select', - 'class' => 'header_edit_all', - 'attributes' => 'onclick="Backend.getScrollOffset()" accesskey="e"' - ) - ), 'operations' => array ( 'edit' => array diff --git a/newsletter-bundle/contao/dca/tl_newsletter_channel.php b/newsletter-bundle/contao/dca/tl_newsletter_channel.php index 7dc48f86585..18598380265 100644 --- a/newsletter-bundle/contao/dca/tl_newsletter_channel.php +++ b/newsletter-bundle/contao/dca/tl_newsletter_channel.php @@ -70,15 +70,6 @@ 'fields' => array('title'), 'format' => '%s' ), - 'global_operations' => array - ( - 'all' => array - ( - 'href' => 'act=select', - 'class' => 'header_edit_all', - 'attributes' => 'onclick="Backend.getScrollOffset()" accesskey="e"' - ) - ), 'operations' => array ( 'edit' => array diff --git a/newsletter-bundle/contao/dca/tl_newsletter_recipients.php b/newsletter-bundle/contao/dca/tl_newsletter_recipients.php index a3c01e09bf5..1b70ee608e2 100644 --- a/newsletter-bundle/contao/dca/tl_newsletter_recipients.php +++ b/newsletter-bundle/contao/dca/tl_newsletter_recipients.php @@ -69,12 +69,7 @@ 'class' => 'header_css_import', 'attributes' => 'onclick="Backend.getScrollOffset()"' ), - 'all' => array - ( - 'href' => 'act=select', - 'class' => 'header_edit_all', - 'attributes' => 'onclick="Backend.getScrollOffset()" accesskey="e"' - ) + 'all' ), 'operations' => array (