Mercurial > hg > soundsoftware-site
comparison app/controllers/.svn/text-base/versions_controller.rb.svn-base @ 41:7f0e922c8982 luisf
merged with new version from trunk
author | luisf |
---|---|
date | Fri, 19 Nov 2010 14:45:28 +0000 |
parents | 94944d00e43c |
children |
comparison
equal
deleted
inserted
replaced
35:67e8aef29de9 | 41:7f0e922c8982 |
---|---|
107 attributes = params[:version].dup | 107 attributes = params[:version].dup |
108 attributes.delete('sharing') unless @version.allowed_sharings.include?(attributes['sharing']) | 108 attributes.delete('sharing') unless @version.allowed_sharings.include?(attributes['sharing']) |
109 if @version.update_attributes(attributes) | 109 if @version.update_attributes(attributes) |
110 flash[:notice] = l(:notice_successful_update) | 110 flash[:notice] = l(:notice_successful_update) |
111 redirect_to :controller => 'projects', :action => 'settings', :tab => 'versions', :id => @project | 111 redirect_to :controller => 'projects', :action => 'settings', :tab => 'versions', :id => @project |
112 else | |
113 respond_to do |format| | |
114 format.html { render :action => 'edit' } | |
115 end | |
112 end | 116 end |
113 end | 117 end |
114 end | 118 end |
115 | 119 |
116 def close_completed | 120 def close_completed |