theforeman/foreman — pull request #55 by Orphis (2012-05-24 11:24:06+00:00)
Title: Fixes puppetclasses search with pg database

The request is sorting the results on a field that isn't in the SELECT DISTINCT columns and pg doesn't like it.
Fixes #1607