NPM Resource Changed ? ? Pending

User tests: Successful: Unsuccessful:

avatar Fedik
Fedik
26 Nov 2019

Summary of Changes

The fix for issue described in #27111 by @infograf768

The Clear button is not acting as it correctly does in 3.x.
It should not only clear the existing association itself in the Reference but also reload the Target with empty item fields.

Testing Instructions

apply patch, run npm install
go to edit an existing language association, and push a clear btn

Expected result

works

Actual result

not works

avatar Fedik Fedik - open - 26 Nov 2019
avatar Fedik Fedik - change - 26 Nov 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 Nov 2019
Category JavaScript Repository NPM Change
avatar infograf768 infograf768 - change - 26 Nov 2019
Labels Added: NPM Resource Changed ?
avatar infograf768
infograf768 - comment - 27 Nov 2019

@Fedik
First I merged #27111 as it contains a patch for administrator/components/com_associations/Field/Modal/AssociationField.php (wrong name for the js file)
Almost there. Clear works OK
Remains a problem when we use Copy Reference to Target after Clearing twice.
The reference now displays the last target created and the Iframe is blocked.

problem_sidebyside

avatar Fedik
Fedik - comment - 27 Nov 2019

hm, that also strange
need to look

avatar Fedik
Fedik - comment - 30 Nov 2019

@infograf768 I tried 8-10 times in row, to "copy to reference" and "clear", and it work without any blocking to me.
In theory it may happen if there a js error, can you please look in Browser dev console, is there any? (turn joomla to debug mode "on", so we will see a real line number for error)

avatar infograf768
infograf768 - comment - 1 Dec 2019

@Fedik
I can't indeed totally replicate it. Debug console shows no error but look carefully at this capture:
The new target is first briefly loaded in reference before being replaced by the original reference with an iframe reload.

sidebyside_display2

The difference with my test before is that it was remaining stuck as reference and is now replaced.

Shall we just hope that it will remain working this weird way or try to figure out what's really going on?

avatar Fedik
Fedik - comment - 2 Dec 2019

@infograf768 I see you have 3 languages, and I have only 2, maybe somehow related also,
I will try to check more

avatar Fedik
Fedik - comment - 6 Dec 2019

@infograf768 I have tried one more time.
Sorry I still cannot replicate it

Shall we just hope that it will remain working this weird way or try to figure out what's really going on?

I think, we can test the patch as is now,
And if it will be a bug for multiple users, then we may get more info about that weird bug.

avatar infograf768 infograf768 - test_item - 6 Dec 2019 - Tested successfully
avatar infograf768
infograf768 - comment - 6 Dec 2019

I have tested this item successfully on 722df45

Agree. Thanks. Let’s get this in.


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

avatar alikon alikon - test_item - 8 Dec 2019 - Tested successfully
avatar alikon
alikon - comment - 8 Dec 2019

I have tested this item successfully on d512b75


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

avatar alikon alikon - change - 8 Dec 2019
Status Pending Ready to Commit
avatar alikon
alikon - comment - 8 Dec 2019

RTC


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

avatar infograf768 infograf768 - change - 8 Dec 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-12-08 09:09:18
Closed_By infograf768
Labels Added: ?
avatar infograf768 infograf768 - close - 8 Dec 2019
avatar infograf768 infograf768 - merge - 8 Dec 2019
avatar infograf768
infograf768 - comment - 8 Dec 2019

Thanks.

avatar infograf768
infograf768 - comment - 8 Dec 2019

@alikon
Have you remarked when testing the weird behavior I saw?

Add a Comment

Login with GitHub to post a comment