Commit 95b2c3fc547303df5a9aa68b3e58ba815131299c

Authored by Rodrigo Souto
1 parent ee0f1859

[language-selection] Avoiding crash on article without profile

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/controllers/my_profile/cms_controller.rb
@@ -116,11 +116,11 @@ class CmsController < MyProfileController @@ -116,11 +116,11 @@ class CmsController < MyProfileController
116 @parent_id = parent.id 116 @parent_id = parent.id
117 end 117 end
118 118
119 - translations if @article.translatable?  
120 -  
121 @article.profile = profile 119 @article.profile = profile
122 @article.last_changed_by = user 120 @article.last_changed_by = user
123 121
  122 + translations if @article.translatable?
  123 +
124 continue = params[:continue] 124 continue = params[:continue]
125 if request.post? 125 if request.post?
126 if @article.save 126 if @article.save