Commit 95b2c3fc547303df5a9aa68b3e58ba815131299c
1 parent
ee0f1859
Exists in
master
and in
29 other branches
[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 | 116 | @parent_id = parent.id |
117 | 117 | end |
118 | 118 | |
119 | - translations if @article.translatable? | |
120 | - | |
121 | 119 | @article.profile = profile |
122 | 120 | @article.last_changed_by = user |
123 | 121 | |
122 | + translations if @article.translatable? | |
123 | + | |
124 | 124 | continue = params[:continue] |
125 | 125 | if request.post? |
126 | 126 | if @article.save | ... | ... |