Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.0] Multililanguage: Associations do not display any more for articles categories #20667

Closed
infograf768 opened this issue Jun 5, 2018 · 2 comments

Comments

@infograf768
Copy link
Member

infograf768 commented Jun 5, 2018

Steps to reproduce the issue

Install last 4.0-dev
Enable the Language filter plugin and make sure Associations is set to Yes.
Display Articles Categories Manager
or edit an Article Category

Expected result

In the manager, the Associations column should display
When editing a category, the Associations tab should display

Actual result

Both don't display.
$this->assoc is always false

@infograf768
Copy link
Member Author

infograf768 commented Jun 5, 2018

I think I found the issue:
The code for getAssoc() method is looking for helpers the old way, i.e.

		else
		{
			$hname = $cname . 'HelperAssociation';
			\JLoader::register($hname, JPATH_SITE . '/components/' . $component . '/helpers/association.php');

			$assoc = class_exists($hname) && !empty($hname::$category_association);
		}

		return $assoc;

but not only the helpers folder does not exist anymore for com_content as it is now
/Helper/AssociationsHelper.php
but also the class has no more component name
i.e. it is class AssociationsHelper extends \CategoryHelperAssociation
instead of
abstract class ContentHelperAssociation extends CategoryHelperAssociation

This explains why it still work for com_contact but not for com_content...
Briefly said, it's all broken...

@laoneo
Copy link
Member

laoneo commented Jun 8, 2018

Please test #20692 which should fix the issue.

@laoneo laoneo closed this as completed Jun 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants