Actions
Bug #12643
closedSmart variable/class param free text search throws "no such column: lookup_values.value" error
Description
When on the smart variables or smart class parameters index pages, entering any free text search fails with the following error:
SQLite3::SQLException: no such column: lookup_values.value: SELECT "lookup_keys"."puppetclass_id" FROM "lookup_keys" WHERE "lookup_keys"."type" IN ('VariableLookupKey') AND (("lookup_keys"."key" LIKE '%test%' OR "lookup_values"."value" LIKE '%test%' OR "puppetclasses"."name" LIKE '%test%')) ORDER BY "lookup_keys"."key" ASC LIMIT 40 OFFSET 0
It appears that the scoped search from lookup keys to values isn't actually joining the tables.
Actions