From 6d714c53134ff709955eb1c53c289dd2a0b4cdcf Mon Sep 17 00:00:00 2001 From: Benjamin Trenkle Date: Sun, 8 May 2016 14:07:10 +0200 Subject: [PATCH] [Regression] Readded stuff from #10190 (#10281) * Deactivate batch for "all items" again * Renamed apublished => a.published * Add new line at eof * Update default_batch_footer.php Same changes to the batchfooter. --- administrator/components/com_menus/models/items.php | 2 +- .../com_menus/views/items/tmpl/default_batch_body.php | 10 ++++++++-- .../views/items/tmpl/default_batch_footer.php | 4 ++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/administrator/components/com_menus/models/items.php b/administrator/components/com_menus/models/items.php index 0457c32febb56..96daea00de3fe 100644 --- a/administrator/components/com_menus/models/items.php +++ b/administrator/components/com_menus/models/items.php @@ -194,7 +194,7 @@ protected function getListQuery() ), array( null, null, null, null, null, null, null, null, null, - null, 'apublished', null, null, null, null, + null, 'a.published', null, null, null, null, null, null, null, null, null, null, null, null, null ) ) diff --git a/administrator/components/com_menus/views/items/tmpl/default_batch_body.php b/administrator/components/com_menus/views/items/tmpl/default_batch_body.php index 49fc124a987ce..5e78225003919 100644 --- a/administrator/components/com_menus/views/items/tmpl/default_batch_body.php +++ b/administrator/components/com_menus/views/items/tmpl/default_batch_body.php @@ -13,8 +13,9 @@ JHtml::_('select.option', 'm', JText::_('JLIB_HTML_BATCH_MOVE')) ); $published = $this->state->get('filter.published'); +$menuType = JFactory::getApplication()->getUserState('com_menus.items.menutype'); ?> - +
@@ -45,4 +46,9 @@
-
\ No newline at end of file +
+ +
+

+
+ diff --git a/administrator/components/com_menus/views/items/tmpl/default_batch_footer.php b/administrator/components/com_menus/views/items/tmpl/default_batch_footer.php index 8c7355e555907..0ee724dbbaca7 100644 --- a/administrator/components/com_menus/views/items/tmpl/default_batch_footer.php +++ b/administrator/components/com_menus/views/items/tmpl/default_batch_footer.php @@ -8,12 +8,12 @@ */ defined('_JEXEC') or die; -$menuType = (array) JFactory::getApplication()->getUserState('com_menus.items.menutype'); +$menuType = JFactory::getApplication()->getUserState('com_menus.items.menutype'); ?> - +