J4 Issue ?
avatar infograf768
infograf768
5 Jun 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

avatar infograf768 infograf768 - open - 5 Jun 2018
avatar joomla-cms-bot joomla-cms-bot - change - 5 Jun 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 5 Jun 2018
avatar infograf768
infograf768 - comment - 5 Jun 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...

avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Jun 2018
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Jun 2018
Category com_associations
avatar brianteeman brianteeman - change - 8 Jun 2018
Labels Added: J4 Issue
avatar brianteeman brianteeman - labeled - 8 Jun 2018
avatar laoneo
laoneo - comment - 8 Jun 2018

Please test #20692 which should fix the issue.

avatar laoneo laoneo - change - 8 Jun 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-06-08 16:28:45
Closed_By laoneo
avatar laoneo laoneo - close - 8 Jun 2018

Add a Comment

Login with GitHub to post a comment