Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error In query_helper.rb in redmine 2.2.x #48

Closed
grassbl8d opened this issue Nov 22, 2012 · 1 comment
Closed

Error In query_helper.rb in redmine 2.2.x #48

grassbl8d opened this issue Nov 22, 2012 · 1 comment

Comments

@grassbl8d
Copy link

hi,

i'm getting this error when using redmine_backlogs on redmine 2.2.x branch

ActionView::Template::Error (undefined method <=>' for nil:NilClass): 20: </td> 21: <td class="add-filter"> 22: <%= label_tag('add_filter_select', l(:label_filter_add)) %> 23: <%= select_tag 'add_filter_select', filters_options_for_select(query), :name => nil %> 24: </td> 25: </tr> 26: </table> app/helpers/queries_helper.rb:33:infilters_options

options = [[]]
sorted_options = query.available_filters.sort do |a, b|
ord = 0
if !(a[1][:order] == 20 && b[1][:order] == 20)
ord = a[1][:order] <=> b[1][:order]
else
cn = (CustomField::CUSTOM_FIELDS_NAMES.index(a[1][:field].class.name) <=>
CustomField::CUSTOM_FIELDS_NAMES.index(b[1][:field].class.name))
if cn != 0

THanks!
Carlo

@grassbl8d grassbl8d reopened this Nov 22, 2012
@grassbl8d
Copy link
Author

wrong forum sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant