修改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|
|
respond_to do |format|
|
||||||
format.js
|
format.js
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -105,7 +105,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function course_attachmenttypes_searchex(value) {
|
function course_attachmenttypes_searchex(value) {
|
||||||
<% if @course%>
|
<% if @course %>
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '<%=getattachtype_course_files_path(course_id: @course)%>',
|
url: '<%=getattachtype_course_files_path(course_id: @course)%>',
|
||||||
type: "POST",
|
type: "POST",
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</p>
|
</p>
|
||||||
<p style="margin-left:-20px;">
|
<p style="margin-left:-20px;">
|
||||||
<span style="margin-left:10px;">
|
<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>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p style="margin-left:-20px;">
|
<p style="margin-left:-20px;">
|
||||||
|
|
Loading…
Reference in New Issue