Defect #37553

query as_params error

Added by Brice Beaumesnil about 1 month ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Filters
Target version:-
Resolution: Affected version:

Description

Hello,

In my page if we click on "Issues assigned to me" we're redirect to issue page with the query, but it's not the same.

The error is on the filter "status" : function : 'status', operator : 'o' and no values.

But, the method Query.as_params put a v[status]='' on the URL.

To have the same result between my/page and issue's page. You need to change :

params[:v][field] = options[:values]

by :
params[:v][field] = options[:values] unless options[:values].reject{ |v| v.empty? }.empty?

Thanks

Also available in: Atom PDF