mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-19 19:25:57 +08:00
fix: labels limit and issues operate field
This commit is contained in:
@@ -17,7 +17,7 @@ class IssueTagsController < ApplicationController
|
||||
|
||||
|
||||
def create
|
||||
title = params[:name].to_s.strip.first(10)
|
||||
title = params[:name].to_s.strip.first(15)
|
||||
desc = params[:description].to_s.first(30)
|
||||
color = params[:color] || "#ccc"
|
||||
|
||||
@@ -60,8 +60,8 @@ class IssueTagsController < ApplicationController
|
||||
end
|
||||
|
||||
def update
|
||||
title = params[:name]
|
||||
desc = params[:description]
|
||||
title = params[:name].to_s.strip.first(15)
|
||||
desc = params[:description].to_s.first(30)
|
||||
color = params[:color] || "#ccc"
|
||||
|
||||
tag_params = {
|
||||
|
||||
@@ -15,6 +15,7 @@ class IssuesController < ApplicationController
|
||||
include TagChosenHelper
|
||||
|
||||
def index
|
||||
@user_operate_issue = current_user.present? && current_user.logged? && (current_user.admin || @project.member?(current_user))
|
||||
@user_admin_or_member = current_user.present? && current_user.logged? && (current_user.admin || @project.member?(current_user) || @project.is_public?)
|
||||
issues = @project.issues.issue_issue.issue_index_includes
|
||||
issues = issues.where(is_private: false) unless @user_admin_or_member
|
||||
|
||||
Reference in New Issue
Block a user