Closed (duplicate)
Project:
Similar By Terms
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Apr 2018 at 18:24 UTC
Updated:
6 Jul 2026 at 02:48 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jienckebd commentedI messed up the logic in previous patch. This one works better.
Comment #3
luksakShouldn't this be achieved with something described in #1319114: Similar sort without filter? Having a filter in addidion would make your functionality already configurable.
Comment #4
kasey_mk commentedI like this idea too. In the meantime, I guess I'll make a "fallback" view to insert in the "no results behavior" area.
Comment #5
shelaneComment #6
camilo.escobar commentedI rerolled the patch for version 8.x-1.9.
An important correction was also made. The patch in #2 introduced the following code:
However, the condition should check for
!empty($this->tids)instead.With the previous patch, the taxonomy join and filter are applied only when no term IDs are available, which is the opposite of the intended behavior. The filter should only be added when the view has term IDs to match against.
Comment #7
shelane