版本 输入名字不能为空
This commit is contained in:
parent
b6db00643e
commit
15e54dd765
|
@ -116,7 +116,8 @@ class VersionsController < ApplicationController
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html { render :action => 'new' }
|
format.html { flash[:error] = @version.errors.full_messages.to_s
|
||||||
|
redirect_to settings_project_url(@project, :tab => 'versions') }
|
||||||
format.js { render :action => 'new' }
|
format.js { render :action => 'new' }
|
||||||
format.api { render_validation_errors(@version) }
|
format.api { render_validation_errors(@version) }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue