Project

General

Profile

how exclude default status from status list in new (or updating old) issue

Added by Alberto Cennini over 10 years ago

I need to exclude the default status in status list when a issue is managed. This is because I need different status in different workflow, and for now the default status is indipendent from workflow.
I find these istructions in issue_status.rb

Returns the default status for new issues
def self.default
where(:is_default => true).first
end

Any suggestion ?
Thanks

Environment:
Redmine version 2.3.2.stable
Ruby version 1.9.3-p231 (2012-05-25) [i386-mingw32]
Rails version 3.2.13
Environment production
Database adapter Mysql2
Redmine plugins:
extended_fields 0.2.2
redmine_hours 0.1.0
redmine_landing_page 0.1.0
redmine_plugin_views_revisions 0.0.1
redmine_smart_issues_sort 0.3.1
redmine_spent_time 2.4.0
redmine_watcher_groups 0.0.1
redmine_workload 1.0.2