[4.0] Admin modules: Cannot select or filter by position#23289
[4.0] Admin modules: Cannot select or filter by position#23289wilsonge merged 12 commits intojoomla:4.0-devfrom
Conversation
| // In case of admin module | ||
| if ($this->item->client_id == 1) | ||
| { | ||
| $input->set('client_id', 1); |
There was a problem hiding this comment.
Input shouldn't be modified in a layout file.
There was a problem hiding this comment.
@laoneo
What do you suggest to solve the issue?
There was a problem hiding this comment.
The other solution is to create specific fields for admin modules.
I could not find another way.
There was a problem hiding this comment.
Another solution: doing that in the models.
On it now.
There was a problem hiding this comment.
I think a correct way would be to use a field attribute.
but for this also need to improve ModulesPositioneditField also
9da4b8e to
9afd992
Compare
|
Is this not the same as #22040? At least the filter part. |
|
not really as we have a new field and the modulesposition field was modified in 4.0. |
that is CSS issue, somewhere, I tried to fix it in https://github.com/joomla/joomla-cms/pull/22263/files#diff-712f8768cba688c1b024f23f9941f51eR4 not sure why it there again |
|
@Fedik Concerning the dropdown z-index, it looks like So we get and |
|
That should work. Just don't add 3rd argument to |
46a87f0 to
cc8f54b
Compare
|
Modified to use |
|
I have tested this item ✅ successfully on c4d5e9e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23289. |
|
I have tested this item ✅ successfully on 76b957b This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23289. |
|
RTC. Thanks for testing. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23289. |
|
Thanks guys! |
#22263 forgot admin modules
Summary of Changes
Change type of the position field for admin modules.
Setting the correct client id.
Testing Instructions
Install j4 from 4.0-dev or nightly.
Display Administrator Modules Manager
Create or edit one these modules.
Note: there are other errors
Expected result
The
Positionfield should be similar to the one used for Site Modules, i.e. letting clear, select, set to None the position.Filtering by position should display the administrator template positions
Actual result
For the manager, positions are sometimes the ones from the frontend template in the filter

Editing the admin module displays a simple field

After patch
Note
There are other errors, not only related to admin modules.
General Comment
The decision to take off from the Modules Manager the Site/Admin filter is at the origin of some issues concerning
userstateand filters specially when a user switches from one to the other via the menu or System CPanel.@Fedik