New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] getContent can't handle a taxonomy where clause where contenttype doesn't use the specified taxonomy (singular and multiple) #6050
Comments
Tested what happens if you try to use a taxonomy where clause on a single content type that doesn't use the taxonomy:
Also throws an error, not sure if this is intended? |
This may be related: Trying to do an OR filter by multiple taxonomies throws a similar error: // Contenttypes string
$query_contenttypes_string = ('pages', 'events', 'reports');
// Taxonomy where array
$query_tax_where_array = [
'categories ||| tags' => 'Commissioning || Evaluation ||| poetry || architecture || nonfiction || research || math',
];
$results = $app['query']->getContent($query_contenttypes_string, $query_tax_where_array); Error:
What's different in this instance, is news definitely has the categories taxonomy, but a Column not found error is thrown? EDIT: Done some more testing and this error is thrown when multiple contenttypes are used |
Trying to search for if a relationList (Extension) plugin using the where param also fails: Fails (Multi content type, all have the related_content column):
Works (single content type):
Multi-failure message:
|
@GawainLynch This issue is not fixed yet - The fix breaks if more than one where parameter is used. |
OK, good to know. FYI this was auto-closed by GitHub's merge button on #6054 |
Finally fixed in #6061 |
If you have a number of contenttypes e.g.:
And only pages and reports have the tags taxonomy then:
Throws an error:
P.s. Sorry for the multiple edits, hit enter and it submitted the form ¬_¬
The text was updated successfully, but these errors were encountered: