joinFields
with myfield=''
causes "Unknown column" error
#2067
Labels
joinFields
with myfield=''
causes "Unknown column" error
#2067
ProcessWire forms an invalid SELECT clause if a field is in
joinFields
AND is also in a condition that demands it to be empty.Both of these:
result in:
The invalid select clause looks like this: (slightly formatted for clarity)
What I expected?
I expected the
find
call to succeed and the joined field be available without further queries.Notes
In the example above,
title
was used. But it seems any field will result in the same error.The text was updated successfully, but these errors were encountered: