Project

General

Profile

Actions

Bug #12643

closed

Smart variable/class param free text search throws "no such column: lookup_values.value" error

Added by Dominic Cleal over 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Search
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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.


Related issues 2 (0 open2 closed)

Has duplicate Foreman - Bug #13034: SQL error when searching for smart class parameterDuplicate01/07/2016Actions
Has duplicate Foreman - Bug #13105: Search in Smart Class Parameter yields PGErrorDuplicate01/11/2016Actions
Actions

Also available in: Atom PDF