mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
WIP
This commit is contained in:
+10
-1
@@ -49,7 +49,16 @@ module Backlogs
|
||||
private
|
||||
|
||||
def container_name
|
||||
|
||||
case TargetId.parse(target_id)
|
||||
in { type: "sprint", id: sprint_id }
|
||||
Sprint.find_by(id: sprint_id)&.name
|
||||
in { type: "backlog_bucket", id: backlog_bucket_id }
|
||||
BacklogBucket.find_by(id: backlog_bucket_id)&.name
|
||||
in { type: "inbox" }
|
||||
I18n.t(:label_inbox)
|
||||
else
|
||||
nil
|
||||
end
|
||||
end
|
||||
|
||||
def form_url
|
||||
|
||||
Reference in New Issue
Block a user