-
Notifications
You must be signed in to change notification settings - Fork 32
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
uninitialized constant MailReminderMailer::SortCriteria during test #87
Comments
I have found SortCriteria class has been moved out form SortHelper since 3.4.0. So I tried changed the code into
And I also googled someone reported same issue for redmine 3.4.2. |
Hello, have you found a solution for this problem? |
No. I think we have to wait. |
I have the same problem. Redmine 3.4.2. PS: I lost ordering. But it is not a big deal. |
sezd2783, thanks for the idea! I commented out all sorting and column setup at all, so now code looks like this:
Works Ok as well as query sorting is preserved. With column setup
i had an issue about doubling columns in SQL query |
I got the following error when executing "sudo docker exec -it redmine-app bundle exec rake reminder:exec[test] RAILS_ENV=production --trace"
And checked the code find :
def issues_reminder(user, queries_data) User.current = user @queries_data = [] queries_data.each do |project, query| query.project = project sort_init(query.sort_criteria.empty? ? [['id', 'desc']] : query.sort_criteria) @sort_criteria = SortCriteria.new @sort_criteria.available_criteria = query.sortable_columns @sort_criteria.criteria = @sort_default if @sort_criteria.empty?
I think this “SortCriteria" is no MailReminders' since I found no SortCriteria definition in MailReminder.
What cause this error?
The text was updated successfully, but these errors were encountered: