Project

General

Profile

Defect #5354 » redmine_patch_5354.diff

Patch to Redmine core which corrects defect - Stuart Cianos, 2010-05-13 01:15

View differences:

J:/Coding/redmine_plug/Redmine/app/controllers/projects_controller.rb Wed May 12 15:53:49 2010
160 160
  
161 161
  # Edit @project
162 162
  def edit
163 163
    if request.post?
164 164
      @project.attributes = params[:project]
165 165
      if validate_parent_id && @project.save
166 166
        @project.set_allowed_parent!(params[:project]['parent_id']) if params[:project].has_key?('parent_id')
167
		# Force a save of the project record with the correct updated_on time
168
		# to cover corner cases of custom fields, etc. being updated by user
169
		# which do not natively trigger the base project save method
170
		@project.updated_on = Time.now
171
		@project.save
167 172
        flash[:notice] = l(:notice_successful_update)
168 173
        redirect_to :action => 'settings', :id => @project
169 174
      else
170 175
        settings
171 176
        render :action => 'settings'
172 177
      end
173 178
    end
(1-1/5)