Skip to content

Commit

Permalink
Bug: Correcting category associations (#15664)
Browse files Browse the repository at this point in the history
* Bug: Correcting category associations

* Thanks, Thomas
  • Loading branch information
infograf768 authored and rdeutz committed Apr 30, 2017
1 parent ea45bac commit d4c1c21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/com_content/helpers/association.php
Expand Up @@ -36,7 +36,7 @@ public static function getAssociations($id = 0, $view = null)
$view = $view === null ? $jinput->get('view') : $view;
$id = empty($id) ? $jinput->getInt('id') : $id;

if ($view === 'article' || $view === 'category' || $view === 'featured')
if ($view === 'article')
{
if ($id)
{
Expand Down Expand Up @@ -74,7 +74,7 @@ public static function displayAssociations($id)
{
$return = array();

if ($associations = self::getAssociations($id))
if ($associations = self::getAssociations($id, 'article'))
{
$levels = JFactory::getUser()->getAuthorisedViewLevels();
$languages = JLanguageHelper::getLanguages();
Expand Down

0 comments on commit d4c1c21

Please sign in to comment.