From cd48e2d1f7f0bfd7b1440f3200701310f8809bda Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 2 Jun 2009 08:56:49 +0000 Subject: [PATCH 1/1] Remove left over code from original diary language implementation that was stopping editing from being able to change the language. --- app/controllers/diary_entry_controller.rb | 2 -- 1 file changed, 2 deletions(-) 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 -- 2.39.5