修改bug《新建版本时输入wiki页面为非汉字类型且长度够长,点击提交报500错误》
Signed-off-by: alan <547533434@qq.com>
This commit is contained in:
parent
521158a086
commit
95c2edad20
|
@ -275,6 +275,8 @@ class FilesController < ApplicationController
|
|||
|
||||
respond_to do |format|
|
||||
format.js
|
||||
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -105,7 +105,7 @@
|
|||
}
|
||||
|
||||
function course_attachmenttypes_searchex(value) {
|
||||
<% if @course%>
|
||||
<% if @course %>
|
||||
$.ajax({
|
||||
url: '<%=getattachtype_course_files_path(course_id: @course)%>',
|
||||
type: "POST",
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
</p>
|
||||
<p style="margin-left:-20px;">
|
||||
<span style="margin-left:10px;">
|
||||
<%= f.text_field :wiki_page_title, :label => :label_wiki_page, :maxlength => 60, :disabled => @project.wiki.nil? %>
|
||||
<%= f.text_field :wiki_page_title, :label => :label_wiki_page, :disabled => @project.wiki.nil? %>
|
||||
</span>
|
||||
</p>
|
||||
<p style="margin-left:-20px;">
|
||||
|
|
Loading…
Reference in New Issue