? ? ? ? Pending

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
9 Jul 2018

Pull Request for Issue #21003

Summary of Changes

Adding a new toolbar for items which can be associated.
The toolbar button redirects to the side by side Multilingual associations component.
Changes include new methods in FormController as in AdminModel.
And the new toolbar button for each view concerned.

Testing Instructions

Install a multilngual site. Make sure Associations are set.
Edit any

  • article
  • contact
  • menu item
  • newsfeed
  • category

Click on the new Edit Associations Toolbar button. Example:
screen shot 2018-07-09 at 11 57 31

You should be redirected to the side by side.
screen shot 2018-07-09 at 12 08 12

If the item is set to ALL languages, a Notice will display.
screen shot 2018-07-09 at 12 09 16

Documentation Changes Required

I guess so. Target is 3.9.x

@Bakual @rdeutz @alikon

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar infograf768 infograf768 - open - 9 Jul 2018
avatar infograf768 infograf768 - change - 9 Jul 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 9 Jul 2018
Category Administration com_categories com_contact com_content com_menus com_newsfeeds Language & Strings Libraries
avatar infograf768
infograf768 - comment - 9 Jul 2018

Looks like this needs some cs corrections to make drone happy...
Trying now.

0feef18 9 Jul 2018 avatar infograf768 cs
avatar infograf768 infograf768 - change - 9 Jul 2018
Labels Added: ? ?
a91d0a2 9 Jul 2018 avatar infograf768 cs
avatar brianteeman
brianteeman - comment - 9 Jul 2018

Other than my language string comments - this works well

avatar infograf768 infograf768 - change - 9 Jul 2018
Labels Added: ?
avatar brianteeman
brianteeman - comment - 9 Jul 2018

The check to ensure that the language is not "all" doesnt check that it has actually been saved with a set language.

assoc

avatar infograf768
infograf768 - comment - 9 Jul 2018

hmm
this needs some thought. After siesta.

avatar brianteeman
brianteeman - comment - 9 Jul 2018

I have tested this item 🔴 unsuccessfully on f4e6698


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

avatar brianteeman brianteeman - test_item - 9 Jul 2018 - Tested unsuccessfully
avatar infograf768
infograf768 - comment - 9 Jul 2018

The issue is interesting as we have the same behavior when using the associations Tab (through js).
In that last case though, after choosing one or multiple associations we DO save the item, preventing this problem.
Let's see what we can do here.

avatar infograf768
infograf768 - comment - 9 Jul 2018

@brianteeman
Please test again. It works fine now here.

avatar infograf768
infograf768 - comment - 9 Jul 2018

Note: the multilingual manager may not show the item once target is saved and Close button has been used. But the item IS saved with the selected language and correctly associated to the target. Just select the right type of item and language.
One way to see that is to look at the Associations column in the mulilingual manager or the item manager itself (whatever item concerned).

avatar micker
micker - comment - 9 Jul 2018

same return, in fact that a great addition ! we win a lot of time thanks !

avatar infograf768
infograf768 - comment - 9 Jul 2018
avatar infograf768
infograf768 - comment - 10 Jul 2018

@brianteeman
The issue you described in #21022 (comment) is now solved.
Please test again.
edit_assoc

avatar micker
micker - comment - 10 Jul 2018

Tested its ok for me


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

avatar infograf768 infograf768 - alter_testresult - 10 Jul 2018 - micker: Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - alter_testresult - 10 Jul 2018 - micker: Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 10 Jul 2018

at Issue Tracker Test of @micker is shown as successfully. I altered it too but it isn't shown here.

avatar infograf768
infograf768 - comment - 10 Jul 2018

at Issue Tracker Test of @micker is shown as successfully. I altered it too but it isn't shown here.

Yes, I had marked it as successful as he did not do it really, but we have an issue.
We also have an issue with Travis which was working Ok before.

avatar brianteeman
brianteeman - comment - 10 Jul 2018

The issue I reported has been resolved.

BUT I found another one when "editing" associations.

When I open an item that is already associated and then select "edit associations" I expected to be redirected to com_associations with the item AND its association open but it is not.

Thinking about solving this I can see that on a bilingual site what I described would be the expected behaviour but it wouldnt be possible on a site with more than two languages.

So it can only be resolved, imho, by changing the expectation of clicking on the button "edit associations". Perhaps just saying "associations" on the button will do that.

avatar infograf768
infograf768 - comment - 10 Jul 2018

When I open an item that is already associated and then select "edit associations" I expected to be redirected to com_associations with the item AND its association open but it is not.

This can't be expected as the Target Language is not set yet.
Changed the button to "Associations" to concentrate on other stuff.

avatar brianteeman
brianteeman - comment - 10 Jul 2018

This can't be expected as the Target Language is not set yet.

I was referring to editing an item that already had an association created.

avatar infograf768 infograf768 - alter_testresult - 10 Jul 2018 - micker: Tested successfully
avatar micker
micker - comment - 10 Jul 2018

sorry i don't find how to set tested ok ... only in texte ... newbie lol

81414f9 10 Jul 2018 avatar infograf768 cs
avatar infograf768
infograf768 - comment - 10 Jul 2018

@brianteeman
I have improved this code IF we have only 2 Content Languages.
What will happen is the following:

  1. It will load directly an eventual associated item in the side by side.
  2. If no association it will already select the target language in the side by side.

It is obviously impossible to do the same if we have more than 2 content languages

@micker
This has to be tested again with this specific case.

avatar brianteeman
brianteeman - comment - 10 Jul 2018

@infograf768 awesome. If not already merged I will test tomorrow

5b7542c 10 Jul 2018 avatar infograf768 oops
0db5e28 11 Jul 2018 avatar infograf768 cs
avatar jreys jreys - test_item - 11 Jul 2018 - Tested successfully
avatar jreys
jreys - comment - 11 Jul 2018

I have tested this item ✅ successfully on 0db5e28

Works as expected now :)


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

avatar infograf768
infograf768 - comment - 12 Jul 2018

@jreys Thanks for testing.

Needs one more test. @micker @brianteeman

avatar micker
micker - comment - 12 Jul 2018

tested ✅ successfully on 0db5e28


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

avatar franz-wohlkoenig franz-wohlkoenig - alter_testresult - 12 Jul 2018 - micker: Not tested
avatar franz-wohlkoenig franz-wohlkoenig - alter_testresult - 12 Jul 2018 - micker: Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 12 Jul 2018
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 12 Jul 2018

Ready to Commit after two successful tests.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 12 Jul 2018

why was successfully Test of @micker not shown at Issue Tracker (have altered Test now)?

avatar micker
micker - comment - 12 Jul 2018

@franz-wohlkoenig sorry i am a newbie on tracker how i can do this

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 12 Jul 2018

@micker this was not to you, it was a Question on People knowing more than me how this could be (as similar happen a few Days ago).

On your Question as Example of this PR:

Please mark your Test as successfully:

  • open Issue Tracker
  • Login with your github-Account
  • Click on blue "Test this"-Button above Authors-Picture
  • mark your Test as successfully
  • hit "submit test result"
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 12 Jul 2018

@micker before i forget: Thanks for your Work.

avatar mbabker mbabker - change - 16 Jul 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-07-16 22:39:24
Closed_By mbabker
Labels Added: ? ?
Removed: ?
avatar mbabker mbabker - close - 16 Jul 2018
avatar mbabker mbabker - merge - 16 Jul 2018

Add a Comment

Login with GitHub to post a comment