From c27037e10e355a1faa5ab2cc15ead47395743a91 Mon Sep 17 00:00:00 2001 From: Dimitris Grammatikogiannis Date: Mon, 24 Feb 2025 09:16:06 +0200 Subject: [PATCH 01/15] Drop Bootstrap::framework --- libraries/src/HTML/Helpers/Bootstrap.php | 29 ------------------------ 1 file changed, 29 deletions(-) diff --git a/libraries/src/HTML/Helpers/Bootstrap.php b/libraries/src/HTML/Helpers/Bootstrap.php index 436ce382ae103..ff28b98155297 100644 --- a/libraries/src/HTML/Helpers/Bootstrap.php +++ b/libraries/src/HTML/Helpers/Bootstrap.php @@ -616,35 +616,6 @@ public static function toast($selector = '', $options = []): void static::$loaded[__METHOD__][$selector] = true; } - /** - * Method to load the ALL the Bootstrap Components - * - * If debugging mode is on an uncompressed version of Bootstrap is included for easier debugging. - * - * @param mixed $debug Is debugging mode on? [optional] - * - * @return void - * - * @since 3.0 - * - * @deprecated 4.0 will be removed in 6.0 - * Will be removed without replacement - * Load the different scripts with their individual method calls - */ - public static function framework($debug = null): void - { - $wa = Factory::getApplication() - ->getDocument() - ->getWebAssetManager(); - - array_map( - function ($script) use ($wa) { - $wa->useScript('bootstrap.' . $script); - }, - ['alert', 'button', 'carousel', 'collapse', 'dropdown', 'modal', 'offcanvas', 'popover', 'scrollspy', 'tab', 'toast'] - ); - } - /** * Loads CSS files needed by Bootstrap * From 20644fccfd3ffb3d7a4b929f6ac373a5f12999c3 Mon Sep 17 00:00:00 2001 From: Dimitris Grammatikogiannis Date: Mon, 24 Feb 2025 11:39:51 +0200 Subject: [PATCH 02/15] move the code to the compat plg --- .../compat6/src/Extension/Compat6.php | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/plugins/behaviour/compat6/src/Extension/Compat6.php b/plugins/behaviour/compat6/src/Extension/Compat6.php index a7900a597bb37..1e1c69820eb39 100644 --- a/plugins/behaviour/compat6/src/Extension/Compat6.php +++ b/plugins/behaviour/compat6/src/Extension/Compat6.php @@ -11,6 +11,8 @@ namespace Joomla\Plugin\Behaviour\Compat6\Extension; use Joomla\CMS\Event\Application\AfterInitialiseDocumentEvent; +use Joomla\CMS\Factory; +use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Plugin\CMSPlugin; use Joomla\Event\DispatcherInterface; use Joomla\Event\Priority; @@ -99,6 +101,10 @@ public function __construct(DispatcherInterface $dispatcher, array $config = []) */ public function onAfterInitialiseDocument(AfterInitialiseDocumentEvent $event) { + if (!HTMLHelper::isRegistered('bootstrap.framework')) { + HTMLHelper::register('bootstrap.framework', 'Joomla\Plugin\Behaviour\Compat\Extension\Compat::framework'); + } + /** * Load the removed assets stubs, they are needed if an extension * directly uses a core asset from Joomla 5 which is not present in Joomla 6 @@ -111,4 +117,25 @@ public function onAfterInitialiseDocument(AfterInitialiseDocumentEvent $event) ->addRegistryFile('media/plg_behaviour_compat6/removed.asset.json'); } } + + /** + * Method to load the ALL the Bootstrap Components + * + * If debugging mode is on an uncompressed version of Bootstrap is included for easier debugging. + * + * @param mixed $debug Is debugging mode on? [optional] + * + * @return void + */ + public static function framework($debug = null): void + { + $wa = Factory::getApplication()->getDocument()->getWebAssetManager(); + + array_map( + function ($script) use ($wa) { + $wa->useScript('bootstrap.' . $script); + }, + ['alert', 'button', 'carousel', 'collapse', 'dropdown', 'modal', 'offcanvas', 'popover', 'scrollspy', 'tab', 'toast'] + ); + } } From c8b03a974fba7c07b52d6173cbe3cf9dfce3b5f8 Mon Sep 17 00:00:00 2001 From: Dimitris Grammatikogiannis Date: Mon, 24 Feb 2025 12:28:08 +0200 Subject: [PATCH 03/15] add back the deprecation --- plugins/behaviour/compat6/src/Extension/Compat6.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/behaviour/compat6/src/Extension/Compat6.php b/plugins/behaviour/compat6/src/Extension/Compat6.php index 1e1c69820eb39..91646c59aea7c 100644 --- a/plugins/behaviour/compat6/src/Extension/Compat6.php +++ b/plugins/behaviour/compat6/src/Extension/Compat6.php @@ -126,6 +126,10 @@ public function onAfterInitialiseDocument(AfterInitialiseDocumentEvent $event) * @param mixed $debug Is debugging mode on? [optional] * * @return void + * + * @deprecated 4.0 will be removed in 6.0 + * Will be removed without replacement + * Load the different scripts with their individual method calls */ public static function framework($debug = null): void { From 2a5dd66349962ff1e01dfcf9cd44630c13eb9d41 Mon Sep 17 00:00:00 2001 From: Dimitris Grammatikogiannis Date: Mon, 24 Feb 2025 19:24:40 +0200 Subject: [PATCH 04/15] use own class, use toggler --- .../compat/src/HTMLHelper/Bootstrap.php | 46 +++++++++++++++++++ .../compat6/src/Extension/Compat6.php | 37 ++++----------- 2 files changed, 54 insertions(+), 29 deletions(-) create mode 100644 plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php diff --git a/plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php b/plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php new file mode 100644 index 0000000000000..09ca2e51c65fd --- /dev/null +++ b/plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php @@ -0,0 +1,46 @@ + + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +namespace Joomla\Plugin\Behaviour\Compat\HTMLHelper; + +use Joomla\CMS\Factory; +use Joomla\CMS\HTML\HTMLHelper; + +Class Bootstrap +{ + public function __construct() + { + if (!HTMLHelper::isRegistered('bootstrap.framework')) { + HTMLHelper::register('bootstrap.framework', 'Joomla\Plugin\Behaviour\Compat\HTMLHelper\Bootstrap::framework'); + } + } + + /** + * Method to load the ALL the Bootstrap Components + * + * If debugging mode is on an uncompressed version of Bootstrap is included for easier debugging. + * + * @param mixed $debug Is debugging mode on? [optional] + * + * @return void + * + * @deprecated 4.0 will be removed in 6.0 + * Will be removed without replacement + * Load the different scripts with their individual method calls + */ + public static function framework($debug = null): void + { + $wa = Factory::getApplication()->getDocument()->getWebAssetManager(); + + array_map( + function ($script) use ($wa) { + $wa->useScript('bootstrap.' . $script); + }, + ['alert', 'button', 'carousel', 'collapse', 'dropdown', 'modal', 'offcanvas', 'popover', 'scrollspy', 'tab', 'toast'] + ); + } +} diff --git a/plugins/behaviour/compat6/src/Extension/Compat6.php b/plugins/behaviour/compat6/src/Extension/Compat6.php index 91646c59aea7c..657951a7a47a7 100644 --- a/plugins/behaviour/compat6/src/Extension/Compat6.php +++ b/plugins/behaviour/compat6/src/Extension/Compat6.php @@ -11,12 +11,11 @@ namespace Joomla\Plugin\Behaviour\Compat6\Extension; use Joomla\CMS\Event\Application\AfterInitialiseDocumentEvent; -use Joomla\CMS\Factory; -use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Plugin\CMSPlugin; use Joomla\Event\DispatcherInterface; use Joomla\Event\Priority; use Joomla\Event\SubscriberInterface; +use Joomla\Plugin\Behaviour\Compat\HTMLHelper\Bootstrap; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; @@ -101,8 +100,13 @@ public function __construct(DispatcherInterface $dispatcher, array $config = []) */ public function onAfterInitialiseDocument(AfterInitialiseDocumentEvent $event) { - if (!HTMLHelper::isRegistered('bootstrap.framework')) { - HTMLHelper::register('bootstrap.framework', 'Joomla\Plugin\Behaviour\Compat\Extension\Compat::framework'); + /** + * Load the deprecated HTMLHelper classes/functions + * likely be removed in Joomla 7.0 + */ + if ($this->params->get('html_helpers', '1')) { + // Restore HTMLHelper::Bootstrap('framework') + new Bootstrap(); } /** @@ -117,29 +121,4 @@ public function onAfterInitialiseDocument(AfterInitialiseDocumentEvent $event) ->addRegistryFile('media/plg_behaviour_compat6/removed.asset.json'); } } - - /** - * Method to load the ALL the Bootstrap Components - * - * If debugging mode is on an uncompressed version of Bootstrap is included for easier debugging. - * - * @param mixed $debug Is debugging mode on? [optional] - * - * @return void - * - * @deprecated 4.0 will be removed in 6.0 - * Will be removed without replacement - * Load the different scripts with their individual method calls - */ - public static function framework($debug = null): void - { - $wa = Factory::getApplication()->getDocument()->getWebAssetManager(); - - array_map( - function ($script) use ($wa) { - $wa->useScript('bootstrap.' . $script); - }, - ['alert', 'button', 'carousel', 'collapse', 'dropdown', 'modal', 'offcanvas', 'popover', 'scrollspy', 'tab', 'toast'] - ); - } } From 7d26b0be99932fd38af20b3f6ab49d65d5af0e33 Mon Sep 17 00:00:00 2001 From: Dimitris Grammatikogiannis Date: Mon, 24 Feb 2025 19:31:34 +0200 Subject: [PATCH 05/15] cs --- plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php b/plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php index 09ca2e51c65fd..62aa5915dbb7c 100644 --- a/plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php +++ b/plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php @@ -10,7 +10,7 @@ use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; -Class Bootstrap +class Bootstrap { public function __construct() { From 0cdfd09aeeca0767f71d4e862c99f488587d08a9 Mon Sep 17 00:00:00 2001 From: Dimitris Grammatikogiannis Date: Mon, 24 Feb 2025 19:36:14 +0200 Subject: [PATCH 06/15] meh From c05374c8c5b671188e6e53121f667cb7f15837dc Mon Sep 17 00:00:00 2001 From: Dimitris Grammatikogiannis Date: Tue, 25 Feb 2025 11:59:49 +0200 Subject: [PATCH 07/15] refactor --- .../behaviour/compat/src/HTMLHelper/Bootstrap.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php b/plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php index 62aa5915dbb7c..c566329fdd216 100644 --- a/plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php +++ b/plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php @@ -8,17 +8,11 @@ namespace Joomla\Plugin\Behaviour\Compat\HTMLHelper; use Joomla\CMS\Factory; -use Joomla\CMS\HTML\HTMLHelper; +use Joomla\CMS\HTML\Helpers\Bootstrap as OriginalBootstrap; -class Bootstrap -{ - public function __construct() - { - if (!HTMLHelper::isRegistered('bootstrap.framework')) { - HTMLHelper::register('bootstrap.framework', 'Joomla\Plugin\Behaviour\Compat\HTMLHelper\Bootstrap::framework'); - } - } +class Bootstrap extends OriginalBootstrap +{ /** * Method to load the ALL the Bootstrap Components * From 81aa66130056909fd1b20d4fd7ac4890c654639c Mon Sep 17 00:00:00 2001 From: Dimitris Grammatikogiannis Date: Tue, 25 Feb 2025 12:10:50 +0200 Subject: [PATCH 08/15] cs --- plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php b/plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php index c566329fdd216..fb08b4d91c01f 100644 --- a/plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php +++ b/plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php @@ -10,7 +10,6 @@ use Joomla\CMS\Factory; use Joomla\CMS\HTML\Helpers\Bootstrap as OriginalBootstrap; - class Bootstrap extends OriginalBootstrap { /** From 4a42ebcabde7379deb7c5619524bf42dc21902b8 Mon Sep 17 00:00:00 2001 From: Dimitris Grammatikogiannis Date: Thu, 27 Feb 2025 13:35:57 +0200 Subject: [PATCH 09/15] Update Bootstrap.php --- plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php b/plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php index fb08b4d91c01f..6f44d382f3509 100644 --- a/plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php +++ b/plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php @@ -21,7 +21,7 @@ class Bootstrap extends OriginalBootstrap * * @return void * - * @deprecated 4.0 will be removed in 6.0 + * @deprecated 4.0 will be removed in 7.0 * Will be removed without replacement * Load the different scripts with their individual method calls */ From 935311bcb8964f6fe502e5b0256f2ce10a03d590 Mon Sep 17 00:00:00 2001 From: Dimitris Grammatikogiannis Date: Thu, 17 Jul 2025 22:52:32 +0300 Subject: [PATCH 10/15] fix conflicts --- .../language/en-GB/plg_behaviour_compat6.ini | 1 + plugins/behaviour/compat6/compat6.xml | 13 ++++++- .../compat6/src/Extension/Compat6.php | 34 +++++++++++++------ .../src/HTMLHelper/Bootstrap.php | 0 4 files changed, 37 insertions(+), 11 deletions(-) rename plugins/behaviour/{compat => compat6}/src/HTMLHelper/Bootstrap.php (100%) diff --git a/administrator/language/en-GB/plg_behaviour_compat6.ini b/administrator/language/en-GB/plg_behaviour_compat6.ini index 421c8d8d8890a..8fa307dd557b6 100644 --- a/administrator/language/en-GB/plg_behaviour_compat6.ini +++ b/administrator/language/en-GB/plg_behaviour_compat6.ini @@ -6,6 +6,7 @@ PLG_BEHAVIOUR_COMPAT6="Behaviour - Backward Compatibility 6" PLG_COMPAT6_FIELD_CLASSES_ALIASES_DESCRIPTION="Add class aliases for classes which have been renamed or moved to a namespace." PLG_COMPAT6_FIELD_CLASSES_ALIASES_LABEL="Classes Aliases" +PLG_COMPAT6_FIELD_HTML_HELPERS_DESCRIPTION="Activate this option if your extension requires deprecated HTMLHelper classes or functions. When enabled, will provide backward compatibility to the prior major version." PLG_COMPAT6_FIELD_LEGACY_CLASSES_DESCRIPTION="Activate this option if your extension requires previously deprecated classes removed from the current version of Joomla. These removed classes can be found in the folder /plugins/behavior/compat6/classes/." PLG_COMPAT6_FIELD_LEGACY_CLASSES_LABEL="Include Deprecated Classes" PLG_COMPAT6_FIELD_REMOVED_ASSETS_DESCRIPTION="Activate this option if your extension requires removed assets which has resulted in an exception. The assets provided are empty but prevent the exception." diff --git a/plugins/behaviour/compat6/compat6.xml b/plugins/behaviour/compat6/compat6.xml index 0ab8cadab9620..4909c1028d5cc 100644 --- a/plugins/behaviour/compat6/compat6.xml +++ b/plugins/behaviour/compat6/compat6.xml @@ -34,6 +34,18 @@ + + + + JNO - diff --git a/plugins/behaviour/compat6/src/Extension/Compat6.php b/plugins/behaviour/compat6/src/Extension/Compat6.php index 657951a7a47a7..ea35a63184a8e 100644 --- a/plugins/behaviour/compat6/src/Extension/Compat6.php +++ b/plugins/behaviour/compat6/src/Extension/Compat6.php @@ -15,7 +15,6 @@ use Joomla\Event\DispatcherInterface; use Joomla\Event\Priority; use Joomla\Event\SubscriberInterface; -use Joomla\Plugin\Behaviour\Compat\HTMLHelper\Bootstrap; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; @@ -44,6 +43,7 @@ public static function getSubscribedEvents(): array */ return [ 'onAfterInitialiseDocument' => ['onAfterInitialiseDocument', Priority::HIGH], + 'onAfterRoute' => ['onAfterRoute', Priority::HIGH], ]; } @@ -100,15 +100,6 @@ public function __construct(DispatcherInterface $dispatcher, array $config = []) */ public function onAfterInitialiseDocument(AfterInitialiseDocumentEvent $event) { - /** - * Load the deprecated HTMLHelper classes/functions - * likely be removed in Joomla 7.0 - */ - if ($this->params->get('html_helpers', '1')) { - // Restore HTMLHelper::Bootstrap('framework') - new Bootstrap(); - } - /** * Load the removed assets stubs, they are needed if an extension * directly uses a core asset from Joomla 5 which is not present in Joomla 6 @@ -121,4 +112,27 @@ public function onAfterInitialiseDocument(AfterInitialiseDocumentEvent $event) ->addRegistryFile('media/plg_behaviour_compat6/removed.asset.json'); } } + + /** + + + * The after Route logic + * + * @param AfterRouteEvent $event + * @return void + * + * @since __DEPLOY_VERSION__ + */ + public function onAfterRoute($event) + { + /** + * Load the deprecated HTMLHelper classes/functions + * likely be removed in Joomla 7.0 + */ + if ($this->params->get('html_helpers', '1')) { + // Restore HTMLHelper::Bootstrap('framework') + Factory::getContainer()->get(\Joomla\CMS\HTML\Registry::class) + ->register('bootstrap', \Joomla\Plugin\Behaviour\Compat\HTMLHelper\Bootstrap::class, true); + } + } } diff --git a/plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php b/plugins/behaviour/compat6/src/HTMLHelper/Bootstrap.php similarity index 100% rename from plugins/behaviour/compat/src/HTMLHelper/Bootstrap.php rename to plugins/behaviour/compat6/src/HTMLHelper/Bootstrap.php From b2d6991a18fe6d3332273521a18db971a2e60d8c Mon Sep 17 00:00:00 2001 From: Dimitris Grammatikogiannis Date: Thu, 17 Jul 2025 23:13:52 +0300 Subject: [PATCH 11/15] meh --- plugins/behaviour/compat6/src/Extension/Compat6.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/behaviour/compat6/src/Extension/Compat6.php b/plugins/behaviour/compat6/src/Extension/Compat6.php index ea35a63184a8e..53e001a477fd3 100644 --- a/plugins/behaviour/compat6/src/Extension/Compat6.php +++ b/plugins/behaviour/compat6/src/Extension/Compat6.php @@ -11,6 +11,7 @@ namespace Joomla\Plugin\Behaviour\Compat6\Extension; use Joomla\CMS\Event\Application\AfterInitialiseDocumentEvent; +use Joomla\CMS\Factory; use Joomla\CMS\Plugin\CMSPlugin; use Joomla\Event\DispatcherInterface; use Joomla\Event\Priority; From b740bec086eba6f1bf60435d7f873ae2f2f41aec Mon Sep 17 00:00:00 2001 From: Dimitris Grammatikogiannis Date: Fri, 18 Jul 2025 16:38:35 +0300 Subject: [PATCH 12/15] Update Compat6.php --- plugins/behaviour/compat6/src/Extension/Compat6.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/behaviour/compat6/src/Extension/Compat6.php b/plugins/behaviour/compat6/src/Extension/Compat6.php index 53e001a477fd3..f3b0cb981b2d0 100644 --- a/plugins/behaviour/compat6/src/Extension/Compat6.php +++ b/plugins/behaviour/compat6/src/Extension/Compat6.php @@ -44,7 +44,7 @@ public static function getSubscribedEvents(): array */ return [ 'onAfterInitialiseDocument' => ['onAfterInitialiseDocument', Priority::HIGH], - 'onAfterRoute' => ['onAfterRoute', Priority::HIGH], + 'onAfterInitialise' => ['onAfterRoute', Priority::HIGH], ]; } From a280a322d6a0bd837589b102611c10de2533961a Mon Sep 17 00:00:00 2001 From: Dimitris Grammatikogiannis Date: Fri, 18 Jul 2025 16:42:38 +0300 Subject: [PATCH 13/15] Update Compat6.php --- plugins/behaviour/compat6/src/Extension/Compat6.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/behaviour/compat6/src/Extension/Compat6.php b/plugins/behaviour/compat6/src/Extension/Compat6.php index f3b0cb981b2d0..a8bcaf3b0365e 100644 --- a/plugins/behaviour/compat6/src/Extension/Compat6.php +++ b/plugins/behaviour/compat6/src/Extension/Compat6.php @@ -44,7 +44,7 @@ public static function getSubscribedEvents(): array */ return [ 'onAfterInitialiseDocument' => ['onAfterInitialiseDocument', Priority::HIGH], - 'onAfterInitialise' => ['onAfterRoute', Priority::HIGH], + 'onAfterInitialise' => ['onAfterInitialise', Priority::HIGH], ]; } @@ -117,14 +117,14 @@ public function onAfterInitialiseDocument(AfterInitialiseDocumentEvent $event) /** - * The after Route logic + * The after Initialise logic * - * @param AfterRouteEvent $event + * @param After Initialise $event * @return void * * @since __DEPLOY_VERSION__ */ - public function onAfterRoute($event) + public function onAfterInitialise($event) { /** * Load the deprecated HTMLHelper classes/functions From 9c4941c13257ce900d2387158c74256fd79e37ef Mon Sep 17 00:00:00 2001 From: Dimitris Grammatikogiannis Date: Fri, 15 Aug 2025 21:44:59 +0300 Subject: [PATCH 14/15] fixes - use the dropdown module in the dropdown HTMLHelper - Remove the call to `bootstrap.framework` in com_config as it was add in 4.0 alpha1 way before we switched to our own tabs script --- .../components/com_config/tmpl/component/default.php | 4 ---- libraries/src/HTML/Helpers/Dropdown.php | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/administrator/components/com_config/tmpl/component/default.php b/administrator/components/com_config/tmpl/component/default.php index fb439f77db7ab..e63a0aea620d5 100644 --- a/administrator/components/com_config/tmpl/component/default.php +++ b/administrator/components/com_config/tmpl/component/default.php @@ -31,10 +31,6 @@ $wa->useScript('form.validate') ->useScript('keepalive'); -if ($this->fieldsets) { - HTMLHelper::_('bootstrap.framework'); -} - $xml = $this->form->getXml(); ?> diff --git a/libraries/src/HTML/Helpers/Dropdown.php b/libraries/src/HTML/Helpers/Dropdown.php index 4938cf005d64f..2a43df6e34fb5 100644 --- a/libraries/src/HTML/Helpers/Dropdown.php +++ b/libraries/src/HTML/Helpers/Dropdown.php @@ -52,7 +52,7 @@ public static function init() } // Depends on Bootstrap - HTMLHelper::_('bootstrap.framework'); + HTMLHelper::_('bootstrap.dropdown'); Factory::getDocument()->addScriptDeclaration(" (function($){ From 05a430f24d8839c9f6ff4a32dc248a3e4244a5c7 Mon Sep 17 00:00:00 2001 From: Dimitris Grammatikogiannis Date: Fri, 15 Aug 2025 23:48:25 +0300 Subject: [PATCH 15/15] Update plugins/behaviour/compat6/src/Extension/Compat6.php Co-authored-by: Quy Ton --- plugins/behaviour/compat6/src/Extension/Compat6.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/behaviour/compat6/src/Extension/Compat6.php b/plugins/behaviour/compat6/src/Extension/Compat6.php index a8bcaf3b0365e..57136bb598180 100644 --- a/plugins/behaviour/compat6/src/Extension/Compat6.php +++ b/plugins/behaviour/compat6/src/Extension/Compat6.php @@ -115,8 +115,6 @@ public function onAfterInitialiseDocument(AfterInitialiseDocumentEvent $event) } /** - - * The after Initialise logic * * @param After Initialise $event