backlogs/redmine_backlogs — pull request #730 by imenem (2012-11-06 13:42:30+00:00)
Title: Bug in backlogs_query_patch.rb

**Problem:** when trying to dynamically add a new filter to @query by following code, nothing changed in @query.
```ruby
@query.available_filters[field_name] = hash_with_filter_params
```
This is because the old code always returns a new hash with result of the merge instead of a reference to the instance variable.
```ruby
# Always returns a new hash with result of the merge
@available_filters.merge (backlogs_filters)

# Always returns a reference to the instance variable
@available_filters = @available_filters.merge (backlogs_filters)
```
This change allows to dynamically add filters with the following code:
```ruby
@query.available_filters[field_name] = { type: type, order: order, name: name, values: values }
```