Skip to content

Commit

Permalink
Fix an issue where the allowed predicates of a subject did not change…
Browse files Browse the repository at this point in the history
… when its category was updated. Fixes #2791
  • Loading branch information
mworrell committed Nov 22, 2021
1 parent be2000b commit cb2b6dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/m_predicate.erl
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ for_subject(Id, Context) ->
NoRestriction = [ NoRestrictionId || {NoRestrictionId} <- NoRestrictionIds ],
Valid ++ NoRestriction
end,
z_depcache:memo(F, {predicate_for_subject, Id}, ?WEEK, [predicate, category], Context).
z_depcache:memo(F, {predicate_for_subject, Id}, ?WEEK, [predicate, category, Id], Context).


%% @doc Return the id of the predicate category
Expand Down

0 comments on commit cb2b6dd

Please sign in to comment.