[4.0] Module position no more empty when coming from CPanel#24583
[4.0] Module position no more empty when coming from CPanel#24583infograf768 wants to merge 6 commits intojoomla:4.0-devfrom
Conversation
|
I have tested this item ✅ successfully on a0846e4 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24583. |
|
Solved conflicts. |
| <<?php echo $moduleTag; ?> class="card mb-3<?php echo $moduleClassSfx; ?>"> | ||
| <?php if ($canEdit || $canChange) : ?> | ||
| <?php // Make sure we get the admin template module positions ?> | ||
| <?php Factory::getApplication()->setUserState('com_modules.modules.client_id', 1, 'int'); ?> |
There was a problem hiding this comment.
Checked similar calls and they don't include 'int'.
a0f61bd to
286b10c
Compare
|
I have tested this item ✅ successfully on 286b10c This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24583. |
|
Status "Ready To Commit". |
|
This is not the right approach, IMO. The layout should not be setting user state. This way admin filter is forced whenever a page containing a module with this layout is visited. |
|
@SharkyKZ
What do you propose? |
|
One option is to get Other option would be to add |
|
Please make the PR yourself as I do not understand what you propose. |
|
See PR #24698 for alternative. |
Pull Request for Issue #24575
Summary of Changes
Forcing userstate to administrator modules
Testing Instructions
Load Site Modules Manager to be sure userstate is set to site modules
Switch to Control Panel
Edit a module through the cog
Before patch
The module position is empty
After patch
It is now correctly using cpanel position
@chmst @franz-wohlkoenig