mirror of
https://github.com/redmine/redmine.git
synced 2025-11-16 02:06:04 +01:00
Translation missing error in "Project's Status" filter options (#30718).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17869 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -24,12 +24,6 @@ class Project < ActiveRecord::Base
|
|||||||
STATUS_CLOSED = 5
|
STATUS_CLOSED = 5
|
||||||
STATUS_ARCHIVED = 9
|
STATUS_ARCHIVED = 9
|
||||||
|
|
||||||
LABEL_BY_STATUS = {
|
|
||||||
1 => l(:project_status_active),
|
|
||||||
5 => l(:project_status_closed),
|
|
||||||
9 => l(:project_status_archived),
|
|
||||||
}
|
|
||||||
|
|
||||||
# Maximum length for project identifiers
|
# Maximum length for project identifiers
|
||||||
IDENTIFIER_MAX_LENGTH = 100
|
IDENTIFIER_MAX_LENGTH = 100
|
||||||
|
|
||||||
|
|||||||
@@ -604,10 +604,10 @@ class Query < ActiveRecord::Base
|
|||||||
|
|
||||||
# Returns a scope of project statuses that are available as columns or filters
|
# Returns a scope of project statuses that are available as columns or filters
|
||||||
def project_statuses_values
|
def project_statuses_values
|
||||||
project_statuses = Project::LABEL_BY_STATUS
|
[
|
||||||
# Remove archived status from filters
|
[l(:project_status_active), "#{Project::STATUS_ACTIVE}"],
|
||||||
project_statuses.delete(9)
|
[l(:project_status_closed), "#{Project::STATUS_CLOSED}"]
|
||||||
project_statuses.stringify_keys.invert.to_a
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
# Adds available filters
|
# Adds available filters
|
||||||
|
|||||||
Reference in New Issue
Block a user