Actions
Defect #33161
closedNoMethodError undefined method `description' for /trackers
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Invalid
Affected version:
Description
Attempt to query
/trackers.json
returns:
NoMethodError in Trackers#index Showing C:/Apache24/htdocs/redmine/app/views/trackers/index.api.rsb where line #7 raised: undefined method `description' for #<Tracker:0x000000000b699028> Extracted source (around line #7): 5 api.name tracker.name 6 api.default_status(:id => tracker.default_status.id, :name => tracker.default_status.name) unless tracker.default_status.nil? 7 api.description tracker.description 8 end 9 end 10 end Application trace: app/views/trackers/index.api.rsb:7:in `block (4 levels) in _app_views_trackers_index_api_rsb__460140370_95777860' lib/redmine/views/builders/structure.rb:74:in `method_missing' app/views/trackers/index.api.rsb:3:in `block (3 levels) in _app_views_trackers_index_api_rsb__460140370_95777860' app/views/trackers/index.api.rsb:2:in `each' app/views/trackers/index.api.rsb:2:in `block (2 levels) in _app_views_trackers_index_api_rsb__460140370_95777860' lib/redmine/views/builders/structure.rb:35:in `array' app/views/trackers/index.api.rsb:1:in `block in _app_views_trackers_index_api_rsb__460140370_95777860' lib/redmine/views/builders.rb:36:in `for' app/views/trackers/index.api.rsb:1:in `_app_views_trackers_index_api_rsb__460140370_95777860' lib/redmine/sudo_mode.rb:65:in `sudo_mode'
Updated by Александр Алексеев over 5 years ago
- Status changed from New to Resolved
Sorry, it seems that it was a problem during upgrading Redmine from 3.x to 4.x.
Updated by Marius BĂLTEANU over 5 years ago
- Status changed from Resolved to Closed
- Resolution set to Invalid
Александр Алексеев wrote:
Sorry, it seems that it was a problem during upgrading Redmine from 3.x to 4.x.
Thanks for your feedback.
Updated by Alessandro Rodi over 5 years ago
An additional information: the problem is indeed due to the upgrade.
If you see that, you probably forgot to update the database with
bundle exec rails db:migrate
Actions