Commit f003a7d9340f0878e62bd546752c5515d7ce5c3a
Committed by
Victor Costa
1 parent
53166630
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Fix error in return values from redirect_to_translation
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
app/controllers/public/content_viewer_controller.rb
@@ -107,10 +107,12 @@ class ContentViewerController < ApplicationController | @@ -107,10 +107,12 @@ class ContentViewerController < ApplicationController | ||
107 | if translation.language == locale | 107 | if translation.language == locale |
108 | @page = translation | 108 | @page = translation |
109 | redirect_to :profile => @page.profile.identifier, :page => @page.explode_path | 109 | redirect_to :profile => @page.profile.identifier, :page => @page.explode_path |
110 | + return true | ||
110 | end | 111 | end |
111 | end | 112 | end |
112 | end | 113 | end |
113 | end | 114 | end |
115 | + false | ||
114 | end | 116 | end |
115 | 117 | ||
116 | def pass_without_comment_captcha? | 118 | def pass_without_comment_captcha? |