Project

General

Profile

NoMethodError (undefined method `number_with_precision' for #

Added by Alexander natsss almost 6 years ago

Не проходит выгрузка файла в csv, в журнале отображается ошибка:
Прошу проконсультировать по данной ошибке и пути решения.

Started GET "/projects/projectsit/issues.csv?utf8=%E2%9C%93&set_filter=1&f%5B%5D=&c%5B%5D=id&c%5B%5D=tracker&c%5B%5D=status&c%5B%5D=priority&c%5B%5D=subject&c%5B%5D=assigned_to&c%5B%5D=start_date&c%5B%5D=due_date&c%5B%5D=updated_on&c%5B%5D=relations&c%5B%5D=project&c%5B%5D=parent&c%5B%5D=author&c%5B%5D=fixed_version&c%5B%5D=category&c%5B%5D=estimated_hours&c%5B%5D=total_estimated_hours&c%5B%5D=spent_hours&c%5B%5D=total_spent_hours&c%5B%5D=done_ratio&c%5B%5D=created_on&c%5B%5D=closed_on&c%5B%5D=last_updated_by&c%5B%5D=attachments&c%5B%5D=cf_15&c%5B%5D=cf_10&c%5B%5D=cf_11&c%5B%5D=cf_4&c%5B%5D=cf_13&c%5B%5D=cf_12&c%5B%5D=cf_5&c%5B%5D=cf_3&c%5B%5D=cf_9&sort=project%2Ctracker%2C&c%5B%5D=all_inline" for 192.168.83.42 at 2018-05-07 11:13:33 +0300
Processing by IssuesController#index as CSV
Parameters: {"utf8"=>"✓", "set_filter"=>"1", "f"=>[""], "c"=>["id", "tracker", "status", "priority", "subject", "assigned_to", "start_date", "due_date", "updated_on", "relations", "project", "parent", "author", "fixed_version", "category", "estimated_hours", "total_estimated_hours", "spent_hours", "total_spent_hours", "done_ratio", "created_on", "closed_on", "last_updated_by", "attachments", "cf_15", "cf_10", "cf_11", "cf_4", "cf_13", "cf_12", "cf_5", "cf_3", "cf_9", "all_inline"], "sort"=>"project,tracker,", "project_id"=>"projectsit"}
Current user: 2580 (id=81)
Completed 500 Internal Server Error in 814ms (ActiveRecord: 106.2ms)

NoMethodError (undefined method `number_with_precision' for #<IssuesController:0x00007f34058de2e0>):
plugins/a_common_libs/lib/acl/redmine/field_format.rb:221:in `format_value'
plugins/a_common_libs/lib/acl/redmine/field_format.rb:216:in `block in formatted_value'
plugins/a_common_libs/lib/acl/redmine/field_format.rb:216:in `map'
plugins/a_common_libs/lib/acl/redmine/field_format.rb:216:in `formatted_value'
lib/redmine/field_format.rb:240:in `formatted_custom_value'
app/helpers/application_helper.rb:205:in `format_object'
app/helpers/queries_helper.rb:253:in `csv_value'
app/helpers/queries_helper.rb:244:in `csv_content'
app/helpers/queries_helper.rb:280:in `block (3 levels) in query_to_csv'
app/helpers/queries_helper.rb:280:in `map'
app/helpers/queries_helper.rb:280:in `block (2 levels) in query_to_csv'
app/helpers/queries_helper.rb:279:in `each'
app/helpers/queries_helper.rb:279:in `block in query_to_csv'
lib/redmine/export/csv.rb:44:in `generate'
lib/redmine/export/csv.rb:26:in `generate'
app/helpers/queries_helper.rb:275:in `query_to_csv'
app/controllers/issues_controller.rb:66:in `block (2 levels) in index'
app/controllers/issues_controller.rb:46:in `index'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'