This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Gitlink
/
forgeplus
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
16
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
新增:项目标记创建时不能为空
pull/347/head
yystopf
2 years ago
parent
05aeecf67a
commit
f9ce2a8b26
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
app/controllers/api/pm/issue_tags_controller.rb
+ 1
- 0
app/controllers/api/pm/issue_tags_controller.rb
View File
@@ -15,6 +15,7 @@ class Api::Pm::IssueTagsController < Api::Pm::BaseController
def create
return render_error("请输入正确的OrganizationID") unless Organization.exists?(id: issue_tag_create_params[:organization_id])
return render_error("项目标记名称不能为空!") unless issue_tag_create_params[:name].present?
@issue_tag = IssueTag.new(issue_tag_create_params.merge!(project_id: 0))
if @issue_tag.save!
render_ok
Write
Preview
Loading…
Cancel
Save