Revision 8ce81870
Added by Ohad Levy about 12 years ago
- ID 8ce818708222104e6f63fb119b063e1abd8f79e1
app/models/hostext/search.rb | ||
---|---|---|
conditions << "hosts.id = #{param.reference_id}"
|
||
end
|
||
end
|
||
conditions.join(' OR ')
|
||
conditions.empty? ? [] : "( #{conditions.join(' OR ')} )"
|
||
end
|
||
|
||
def self.value_to_sql(operator, value)
|
Also available in: Unified diff
fixes #1522 - search based on params sometimes fails