From: Tom Hughes Date: Tue, 2 Jun 2009 08:56:49 +0000 (+0000) Subject: Remove left over code from original diary language implementation that X-Git-Tag: live~7237 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/cd48e2d1f7f0bfd7b1440f3200701310f8809bda?hp=0f7301b64ff33cec548a1a8196a52da050c3d14e;ds=sidebyside Remove left over code from original diary language implementation that was stopping editing from being able to change the language. --- diff --git a/app/controllers/diary_entry_controller.rb b/app/controllers/diary_entry_controller.rb index 388df43fe..46986acb4 100644 --- a/app/controllers/diary_entry_controller.rb +++ b/app/controllers/diary_entry_controller.rb @@ -32,8 +32,6 @@ class DiaryEntryController < ApplicationController if @user != @diary_entry.user redirect_to :controller => 'diary_entry', :action => 'view', :id => params[:id] elsif params[:diary_entry] - params[:diary_entry][:language] = Language.find_by_code(params[:diary_entry][:language]) - params[:diary_entry][:language] = Language.find_by_code("en") if params[:diary_entry][:language].nil? if @diary_entry.update_attributes(params[:diary_entry]) redirect_to :controller => 'diary_entry', :action => 'view', :id => params[:id] end