-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4] Strange module selection. #30798
Comments
I have tested it now with a pure online nightly Joomla 4 and it has exactly the same issue.
Additional find: One can't reorder the deactivated module with Drag&Drop. |
@dgrammatiko Can you please advise changes to the following code to only add the click event to rows containing a checkbox input? Thank you!
|
@Quy sure, the problem is that for disabled rows the checkbox needs to render with a disabled attribute instead of skipping it. Basically the conditional here
<?php echo HTMLHelper::_('grid.id', $i, $item->id); ?> needs to return always a checkbox but if needed with a disabled attribute)
|
you need something like: if (this.boxes[currentCheckBox].disabled) {
return;
} |
Almost there. The disabled checkbox can still be toggled using the Check All Items checkbox at the top. Thank you! |
This appears to be resolved now as the last issue reported is no longer valid and this should be closed |
If you say so I believe it ;-) |
This is reproducible. Install Testing Sample Data. |
Thanks @Quy for reopening! I have confused this with another selection failure pr (menu assignment) |
@brianteeman try to select the next module after the disabled one |
ah - it selects the next two. got it now |
See demo of problem here in the NOTE |
Why don't we simply do
imho, it does not matter if we can tick the disabled item checkbox and use Actions as it does not change its disabled status. |
thats not a good solution as it provides a negative user experience which was the entire point in the checkbox being removed in the first place. |
TBH, I'm more surprised when the checkbox is removed at all, because then I have to think and guess and have to make a connection: no checkbox? why? mhh, because it's disabled (says the icon at least). If there would be an disabled checkbox with information why it's disabled, then I don't have to think myself... |
Certainly less negative than what we have now. The module can anyway be edited although it is disabled. Taking off the checkbox makes no sense. Concerning the explanation, I guess using a real tooltip as proposed here would do the job.#34238 (comment) |
Whoever removed the checkbox for the disabled items did a very poor job as they broke at least 3 scripts: drag and drop, multiselect and select all. Can it be done without a checkbox for disabled items? Yes but all 3 scripts need to be adjusted and honestly, it's far easier to bringback the checkbox as I already guided @Quy in my comments above |
|
The use of |
If a component is disabled, we remove the link in the menu to this component. No Tooltip, no ghost componetnt - disabled means disabled. Why not hide disabled module instances from the list? |
Actually, I wouldn't expect the Also if you hide rows like that in case I uninstall a module I have no way to remove any remaining related data in the database |
I see this: A disabled module is not in the select screen (com_modules&view=select). |
In any case, re-adding the checkbox and disabling it so that no action is possible would at least solve the problem of the missing checkbox |
Except, as @bembelimen rightfully remarked, that one can't delete the instance of the module concerned via the admin UI. |
Just saying: In j3 disabled module items are not shown in the list. It is true that the items remain as ghost in the database. |
The difference in J3 is that a blocked module can't be disabled. |
I have added checkbox, please test #34273 |
closing it, because PR |
Steps to reproduce the issue
Maybe issue is not related to J4 core but I don't know for sure.
Updated a J 3.9.21 stepwise to Joomla 4 (current nightly).
Deactivate a module extension on
Extensions > Manage
where a module exists onSite Modules
(image 000).Go to
Site Modules
and select some modules.I can select modules without issues one by one that are ordered in the list before "Newsletter".
See images 001 to 003 for modules that are ordered after module "Newsletter".
Green arrow: Here I clicked (select and deselect).
Orange arrow: The wrong selection afterwards.
image 000
image 001
image 002
002
image 003
System information (as much as possible)
System Information
Setting Value
PHP Built On Windows NT DELL-M6800 10.0 build 19041 (Windows 10) AMD64
Database Type mysql
Database Version 10.4.11-MariaDB
Database Collation utf8mb4_general_ci
Database Connection Collation utf8mb4_general_ci
Database Connection Encryption None
Database Server Supports Connection Encryption No
PHP Version 7.3.16
Web Server Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.3.16
WebServer to PHP Interface apache2handler
Joomla! Version Joomla! 4.0.0-beta5-dev Development [ Mañana ] 15-September-2020 19:15 GMT
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36 Edg/85.0.564.63
The text was updated successfully, but these errors were encountered: