cubicweb #2093257 broken facet on [deprecated]

reporting here because it looks like a problem in the Facet code, and not a cwo issue. Reporting on 3.13.10 because cwo is running 3.13.9.

Steps to reproduce:

  • open
  • in the search box type "vcreview" and press return
  • in the "entity type facet" select "Project"

You should get a redirection to the home page, with an error message saying:

Any X ORDERBY FTIRANK(X) DESC WHERE X has_text "vcreview", X is IN(BaseTransition, BlogEntry, CWUser, Card, Comment, Email, EmailThread, Event,
ExtProject, File, Folder, License, Link, MailingList, MicroBlogEntry, Patch, Project, ProjectEnvironment, State,  Tag, Task, TestConfig, TestInstance,
Ticket, Transition, Version, VersionedFile, Workflow, WorkflowTransition), X is Project
** can only one type restriction per variable (use IN for X if desired)
done in<not specified>
load left0.000
closed by<not specified>