Commit 587a999a authored by Robert Ragas's avatar Robert Ragas Committed by Robert Ragas
Browse files

Merge pull request #2399 from goalgorilla/issue-3222130-cant-filter-by-content-tags-on-topics-page

Issue #3222130 by nkoporec: Can't filter by content tags on /all-topics page
parent 8c902c3d
Loading
Loading
Loading
Loading
+12 −3
Original line number Diff line number Diff line
@@ -257,10 +257,19 @@ class SocialTaggingOverrides implements ConfigFactoryOverrideInterface {
        }

        $relationship = ($config_name === 'views.view.group_topics' || $config_name === 'views.view.group_events') ? 'gc__node' : 'none';
        $table = ($config_name === 'views.view.newest_groups') ? 'group__social_tagging' : 'node__social_tagging';

        if ($tag_service->profileActive()) {
        // Select the correct table, based on the config.
        switch ($config_name) {
          case 'views.view.newest_groups':
            $table = 'group__social_tagging';
            break;

          case 'views.view.newest_users':
            $table = 'profile__social_tagging';
            break;

          default:
            $table = 'node__social_tagging';
        }

        foreach ($fields as $field => $data) {