Support object related magic tags in field WHERE clause #6766
JoryHogeveen
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Overview
Currently object related magic tags only work in templates (eg:
{@post_parent}
.It will require some refactoring but it would be awesome to support these type of tags within the WHERE clause for relationship fields.
For example:
t.post_parent = (@post_parent}
.For new posts this should return the default value for that object. (in case of
post_parent
it would be0
).Current Behavior
These tags return nothing and result in a query error.
( t.post_parent = )
. If it's empty I guess the it should be( t.post_parent = '' )
or( t.post_parent = 0 )
Possible Solution
Before doing
pods_evaluate_tags
check if the tag is related to the current object, if so, pass the object sopods_v
can find the value.Todos
Beta Was this translation helpful? Give feedback.
All reactions