? ? Pending

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
16 Dec 2018

#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 Position field 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
screen shot 2018-12-16 at 17 36 51

Editing the admin module displays a simple field
screen shot 2018-12-16 at 17 37 09

After patch

screen shot 2018-12-16 at 17 26 51

screen shot 2018-12-16 at 17 27 13

Note

There are other errors, not only related to admin modules.

  1. The calendar icons are showing over the position dropdown (see image above)
  2. After filtering in the manager by anything else than Select and clicking anywhere on the page, the filter fields are displayed horizontally on the page, hiding some items.

screen shot 2018-12-16 at 17 40 57

General Comment

The decision to take off from the Modules Manager the Site/Admin filter is at the origin of some issues concerning userstate and filters specially when a user switches from one to the other via the menu or System CPanel.

@Fedik

avatar infograf768 infograf768 - open - 16 Dec 2018
avatar infograf768 infograf768 - change - 16 Dec 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 16 Dec 2018
Category Administration com_modules
b305794 17 Dec 2018 avatar infograf768 oops
avatar infograf768 infograf768 - change - 17 Dec 2018
Labels Added: ?
0660899 17 Dec 2018 avatar infograf768 oops2
avatar SharkyKZ
SharkyKZ - comment - 17 Dec 2018

Is this not the same as #22040? At least the filter part.

avatar infograf768
infograf768 - comment - 17 Dec 2018

not really as we have a new field and the modulesposition field was modified in 4.0.
see
#22263

avatar Fedik
Fedik - comment - 17 Dec 2018

The calendar icons are showing over the position dropdown

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

avatar infograf768
infograf768 - comment - 18 Dec 2018

@SharkyKZ
You are right. Once again one of these aspects of 4.0 which is way behind staging.
What shall we do?
What is the best code?
If it is the one you used for 3.9.0, I can modify this patch, but I also would have to apply the changes from your PR here for all to work OK.

@wilsonge

avatar infograf768
infograf768 - comment - 18 Dec 2018

@Fedik
If we use the code in 3.9.0 from @SharkyKZ then indeed we just have to modify the way to get the $clientId in ModulesPositioneditField.php by using getUserState('com_modules.modules.client_id', 0, 'int')

Concerning the dropdown z-index, it looks like .choices__list--dropdown in template.css is loaded BEFORE the /media/vendor/choicesjs/css/choices.css and is therefore overriden by that file. (Debug on).

So we get

.choices__list--dropdown {
  display: none;
  z-index: 1;
  position: absolute;
  width: 100%;
  background-color: #FFFFFF;
  border: 1px solid #DDDDDD;
  top: 100%;
  margin-top: -1px;
  border-bottom-left-radius: 2.5px;
  border-bottom-right-radius: 2.5px;
  overflow: hidden;
  word-break: break-all;
}

and z-index = 1; instead of 10

avatar SharkyKZ
SharkyKZ - comment - 18 Dec 2018

That should work. Just don't add 3rd argument to getUserState(). I added it by mistake. Oops.

cc8f54b 18 Dec 2018 avatar infograf768 int
avatar infograf768
infograf768 - comment - 18 Dec 2018

Modified to use getUserState
Please test.

avatar ReLater
ReLater - comment - 30 Dec 2018

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.

avatar ReLater ReLater - test_item - 30 Dec 2018 - Tested successfully
avatar infograf768 infograf768 - alter_testresult - 4 Jan 2019 - Relater: Tested successfully
avatar infograf768 infograf768 - alter_testresult - 4 Jan 2019 - Relater: Not tested
avatar infograf768 infograf768 - alter_testresult - 4 Jan 2019 - ReLater: Tested successfully
avatar anibalsanchez
anibalsanchez - comment - 4 Jan 2019

I have tested this item successfully on 76b957b

Test OK


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23289.

avatar anibalsanchez anibalsanchez - test_item - 4 Jan 2019 - Tested successfully
avatar infograf768 infograf768 - change - 4 Jan 2019
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 4 Jan 2019

RTC. Thanks for testing.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23289.

avatar infograf768
infograf768 - comment - 4 Jan 2019

RTC. Thanks for testing.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23289.

avatar wilsonge wilsonge - change - 4 Jan 2019
Labels Added: ?
avatar wilsonge wilsonge - close - 4 Jan 2019
avatar wilsonge wilsonge - merge - 4 Jan 2019
avatar wilsonge wilsonge - change - 4 Jan 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-01-04 18:35:57
Closed_By wilsonge
avatar wilsonge
wilsonge - comment - 4 Jan 2019

Thanks guys!

Add a Comment

Login with GitHub to post a comment