?
avatar infograf768
infograf768
19 Jul 2018

Steps to reproduce the issue

Create a multingual site. 2 languages are enough.
Create a contact in each language and associate them in their edit page.
Load Multilingual Associations component.
Select Contact as type and one fo the languages.
Click on the greyed icon in the Associations column.
This will load the side by side page.

Expected result

When using the Associations Tab (or button in 4.0) for the reference and the target items, the field for the other language should display the name of the associated contact.

Actual result

It does not.
As you can see in the animated gif below, it does flash the name for a second at reload, then disapears as soon as the Target finishes loading.
assocfieldcontact

@rdeutz @laoneo

Additional comments

This works fine for articles, categories and menu items

avatar infograf768 infograf768 - open - 19 Jul 2018
avatar joomla-cms-bot joomla-cms-bot - change - 19 Jul 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 Jul 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Jul 2018
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Jul 2018
Category com_associations
avatar SharkyKZ
SharkyKZ - comment - 19 Jul 2018

var title = $(this).contents().find('#jform_title').val()

var title = $(reference).contents().find('#jform_title').val();

Title field in Contacts and Newsfeeds is called name, not title so #jform_title selector doesn't work here.

avatar infograf768
infograf768 - comment - 19 Jul 2018

You are right. changing to #jform_name solves the issue.
Now, we do have equivalent in ContactAssociationsHelper
case 'contact': $fields['title'] = 'a.name';

therefore, we have to find a way to change the #jform in the side by side js depending on this parameter.

avatar infograf768
infograf768 - comment - 19 Jul 2018

we get the equivalent to title in associations helper with $titleFieldName

avatar infograf768
infograf768 - comment - 19 Jul 2018

OK. I have a patch.Will create PR

avatar infograf768
infograf768 - comment - 19 Jul 2018

Closing as we have a PR for 3.x
#21180

avatar infograf768 infograf768 - change - 19 Jul 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-07-19 09:37:02
Closed_By infograf768
avatar infograf768 infograf768 - close - 19 Jul 2018

Add a Comment

Login with GitHub to post a comment