Fixed issue #245 - No tag in conditions for new Overviews, Triggers, Schedulers and SLAs.

This commit is contained in:
Rolf Schmidt 2017-04-12 16:28:12 +02:00
parent 284d9e34b4
commit a15f7abc00

View file

@ -643,9 +643,9 @@ condition example
tag_items.id = tags.tag_item_id AND tag_items.id = tags.tag_item_id AND
tag_items.name IN (?) tag_items.name IN (?)
) BETWEEN ? AND ?" ) BETWEEN ? AND ?"
bind_params.push selector['value']
bind_params.push selector['value'].count - 1 bind_params.push selector['value'].count - 1
bind_params.push selector['value'].count bind_params.push selector['value'].count
bind_params.push selector['value']
elsif selector['operator'] == 'before (absolute)' elsif selector['operator'] == 'before (absolute)'
query += "#{attribute} <= ?" query += "#{attribute} <= ?"
bind_params.push selector['value'] bind_params.push selector['value']