No Code Attached Yet
avatar Open2logic
Open2logic
30 Aug 2022

Steps to reproduce the issue

  1. Go to administration
  2. Select the administration modules view ( content / administrator module )
  3. Disable the module user status
  4. Go to de articles view ( content / articles )
  5. Now in the ACTIONS button, the submenu does not work. Publish, The options Unpublish, Feature, Unfeature, Archive, Check-in, Trash and Batch are disable.

Expected result

ACTIONS button with the options Unpublish, Feature, Unfeature, Archive, Check-in, Trash and Batch are are anable.

Actual result

The ACTIONS button, the submenu does not work. Publish, The options Unpublish, Feature, Unfeature, Archive, Check-in, Trash and Batch are disable.

System information (as much as possible)

Joomla 4
unnamed
unnamed

Additional comments

The Actions dropdown requires the following PHP code to work:
HTMLHelper::_('bootstrap.dropdown', '.dropdown-toggle');

And this code is executed ONLY by the User Status making the dropdown accessible in ALL ACTIONS dropdown menu.

avatar Open2logic Open2logic - open - 30 Aug 2022
avatar joomla-cms-bot joomla-cms-bot - change - 30 Aug 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 30 Aug 2022
avatar ReLater
ReLater - comment - 30 Aug 2022

Confirmed. Several dropdowns don't work at several places in backend if module "User Status" is deactivated. Not only Actions dropdowns.

They don't open on click.

J!4.2.1-dev (nightly)
J!4.3.0-dev (nightly)

avatar alikon alikon - change - 30 Aug 2022
Labels Added: Release Blocker
avatar alikon alikon - labeled - 30 Aug 2022
avatar alikon
alikon - comment - 30 Aug 2022

labelled as Release Blocker

avatar ReLater
ReLater - comment - 30 Aug 2022

As far as I see, any HtmlView.php that uses

$dropdown = $toolbar->dropdownButton('status-group')

should get an additional

HTMLHelper::_('bootstrap.dropdown', '.dropdown-toggle');

before or after that line.

The class .dropdown-toggle comes hardcoded from class DropdownButton extends AbstractGroupButton::prepareOptions( but I don't think that it is a good idea to place the HTMLHelper there(????)

avatar brianteeman
brianteeman - comment - 30 Aug 2022

it should be a web asset and not an htmlhelper

avatar Fedik
Fedik - comment - 30 Aug 2022

It not a releas blocker, just a bug

avatar brianteeman
brianteeman - comment - 30 Aug 2022

Please test #38644

avatar ReLater
ReLater - comment - 30 Aug 2022

it should be a web asset and not an htmlhelper

Come on folks. Is that really the point here. Use whatever you want in your Joomla.

But the CSS class for 'status-group' is .dropdown-toggle not .dropdown like in your PR.

That's the reason why I would prefer it at other code places instead of blindly load not used JS in a JLayout that maybe never is used anywhere.

The output of status-group happens here:

<?php else : ?>
<?php echo $button; ?>
<?php endif; ?>

It can be whatever a code before has defined for a button also with other classes than .dropdown-toggle or .dropdown.

avatar Fedik Fedik - change - 30 Aug 2022
Labels Removed: Release Blocker
avatar Fedik Fedik - unlabeled - 30 Aug 2022
avatar Fedik Fedik - close - 30 Aug 2022
avatar Fedik
Fedik - comment - 30 Aug 2022

Closing, because PR

avatar Fedik Fedik - change - 30 Aug 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-08-30 18:14:25
Closed_By Fedik
avatar Open2logic
Open2logic - comment - 21 Feb 2023

This issue is resolved, however other parts of the administration continue to have the issue.

avatar Open2logic
Open2logic - comment - 21 Feb 2023

In the administration, Disable the user status module.
Go to home board ..(/administrator/index.php).
We will see the boxes of Site, System, 3drd PArty, etc.
In the upper right part of each box is the icon that shows a submenu that allows you to edit or unpublish.
But this submenu does NOT appear if the User staus module is disabled.

submenu

Add a Comment

Login with GitHub to post a comment