提交 50c1a989 编写于 作者: J Jan Provaznik 提交者: Jarka Kadlecová

More EE->CE fixes

上级 ef0df760
module TodosActions
include Gitlab::Utils::StrongMemoize
extend ActiveSupport::Concern
def create
......
class Projects::TodosController < Projects::ApplicationController
include Gitlab::Utils::StrongMemoize
include TodosActions
before_action :authenticate_user!, only: [:create]
......
......@@ -169,9 +169,7 @@ module TodosHelper
end
def todo_group_options
groups = current_user.authorized_groups
groups = groups.map do |group|
groups = current_user.authorized_groups.map do |group|
{ id: group.id, text: group.full_name }
end
......
......@@ -83,7 +83,7 @@ class Todo < ActiveRecord::Base
end
def parent
project || group
project
end
def unmergeable?
......
......@@ -285,7 +285,6 @@ class TodoService
def attributes_for_target(target)
attributes = {
project_id: target&.project&.id,
group_id: target.respond_to?(:group) ? target.group_id : nil,
target_id: target.id,
target_type: target.class.name,
commit_id: nil
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册