Browse Source

Merge branch 'standalone_develop' of https://gitlink.org.cn/Trustie/forgeplus into standalone_develop

pull/342/head
xxq250 3 years ago
parent
commit
74bf8a4818
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/models/issue_tag.rb

+ 1
- 1
app/models/issue_tag.rb View File

@@ -28,7 +28,7 @@ class IssueTag < ApplicationRecord
belongs_to :project, optional: true, counter_cache: true
belongs_to :user, optional: true

validates :name, uniqueness: { message: "已存在" }
validates :name, uniqueness: {scope: :project_id, message: "已存在" }

def self.init_data(project_id)
data = [


Loading…
Cancel
Save