From 95b2c3fc547303df5a9aa68b3e58ba815131299c Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Tue, 4 Sep 2012 20:22:40 +0000 Subject: [PATCH] [language-selection] Avoiding crash on article without profile --- app/controllers/my_profile/cms_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/my_profile/cms_controller.rb b/app/controllers/my_profile/cms_controller.rb index fab598f..47b7a5c 100644 --- a/app/controllers/my_profile/cms_controller.rb +++ b/app/controllers/my_profile/cms_controller.rb @@ -116,11 +116,11 @@ class CmsController < MyProfileController @parent_id = parent.id end - translations if @article.translatable? - @article.profile = profile @article.last_changed_by = user + translations if @article.translatable? + continue = params[:continue] if request.post? if @article.save -- libgit2 0.21.2