Language Change Conflicting Files NPM Resource Changed ? Success

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
10 Aug 2020

Pull Request for Issue #30289

Summary of Changes

When the article field is required, which is the case in core only when used in a single article menu item, it is useless to first Clear the field and then Select again when modifying the menu item.

In such a case, a new Change button is added and used. The button is basically using the same code as the Select button.
The reason the button is added is the fact that the code shows or hide buttons depending if the field is empty (new item then use Select) or not.
The hidden status is applied in the js depending on the situation.

When the field is NOT required, we keep the Clear button. When it is, it is now replaced by the Change button, therefore avoiding a 2 steps action.

Testing Instructions

Patch. Run npm ci.
Edit an existing single article menu item.
Create a new single article menu item.

All other cases of the modal_article field are not required and therefore will keep the Clear button (including associations)

This is totally B/C

Actual result BEFORE applying this Pull Request

When editing an existing item

Screen Shot 2020-08-10 at 10 42 57

Expected result AFTER applying this Pull Request

fWhen editing an existing item

Screen Shot 2020-08-07 at 12 41 47

For a new menu item

Screen Shot 2020-08-07 at 12 42 20

We keep the Clear button for Associations and elsewhere when the field is not required and the element change is not set to true

Screen Shot 2020-08-07 at 12 21 34

Documentation Changes Required

Yes

Note

  1. If this is accepted, it can be done for other components where such a modal_xxx is used and required.
  2. It can also be backported to 3.x
avatar infograf768 infograf768 - open - 10 Aug 2020
avatar infograf768 infograf768 - change - 10 Aug 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 10 Aug 2020
Category Administration com_content Language & Strings JavaScript Repository NPM Change Front End
avatar Quy Quy - test_item - 11 Aug 2020 - Tested successfully
avatar Quy
Quy - comment - 11 Aug 2020

I have tested this item successfully on 1e62115


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

avatar infograf768
infograf768 - comment - 12 Aug 2020

@Quy
Just thought about something.
Once we are in the Change status, we do not have any more the Create possibility...
Not sure I can modify to add this, but trying now.

avatar richard67
richard67 - comment - 16 Aug 2020

Not sure I can modify to add this, but trying now.

@infograf768 Will there be any changes on this PR, or will it be a new one? Or in other words: Is this PR here ready?

avatar infograf768
infograf768 - comment - 26 Aug 2020

Is this PR here ready?

Not after I discovered #30331 (comment)
Changing to Draft

avatar jwaisner jwaisner - alter_testresult - 28 Aug 2020 - Quy: Not tested
avatar nadjak77 nadjak77 - test_item - 17 Oct 2020 - Tested successfully
avatar nadjak77
nadjak77 - comment - 17 Oct 2020

I have tested this item successfully on 1e62115


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

avatar mqueme
mqueme - comment - 17 Oct 2020

Tested. Works as expected

avatar richard67
richard67 - comment - 17 Oct 2020

@mqueme Could you also mark your test result in the issue tracker? Just go to https://issues.joomla.org/tracker/joomla-cms/30331 , use the "Test this" button, select the right test result and submit. Thanks in advance.

avatar richard67
richard67 - comment - 17 Oct 2020

@infograf768 As far as I understand you want to make changes on this PR so you had set it to draft status, right?

@nadjak77 @mqueme Thanks for testing so far, but it seems it might need to be tested again later when outstanding changes have been made.

avatar mqueme mqueme - test_item - 17 Oct 2020 - Tested successfully
avatar mqueme
mqueme - comment - 17 Oct 2020

I have tested this item successfully on 1e62115

Works as expected


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

avatar infograf768
infograf768 - comment - 19 Oct 2020

As it is, this can’t be merged. Did not have the opportunity to look if issue can be solved.

avatar gostn gostn - test_item - 25 Nov 2020 - Tested successfully
avatar gostn
gostn - comment - 25 Nov 2020

I have tested this item successfully on 1e62115


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

avatar infograf768
infograf768 - comment - 1 Feb 2022

This can be closed.

avatar infograf768 infograf768 - change - 1 Feb 2022
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2022-02-01 18:33:11
Closed_By infograf768
Labels Added: Language Change Conflicting Files ?
Removed: ? ?
avatar infograf768 infograf768 - close - 1 Feb 2022

Add a Comment

Login with GitHub to post a comment