]> git.openstreetmap.org Git - rails.git/commitdiff
Remove left over code from original diary language implementation that
authorTom Hughes <tom@compton.nu>
Tue, 2 Jun 2009 08:56:49 +0000 (08:56 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 2 Jun 2009 08:56:49 +0000 (08:56 +0000)
was stopping editing from being able to change the language.

app/controllers/diary_entry_controller.rb

index 388df43fe6dc161c2eacee0e22d242e0e15b325f..46986acb4c223023a9f7ce4febf2946216639ef0 100644 (file)
@@ -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