[noosfero/noosfero][master] Fix error in return values from redirect_to_translation
Bráulio Bhavamitra
gitlab at gitlab.com
Sun Mar 22 21:18:44 BRT 2015
Bráulio Bhavamitra pushed to master at Noosfero / noosfero
Commits:
4e9c7fe3 by dtygel at 2015-03-22T21:18:20Z
Fix error in return values from redirect_to_translation
- - - - -
1 changed file:
- app/controllers/public/content_viewer_controller.rb
Changes:
=====================================
app/controllers/public/content_viewer_controller.rb
=====================================
--- a/app/controllers/public/content_viewer_controller.rb
+++ b/app/controllers/public/content_viewer_controller.rb
@@ -107,10 +107,12 @@ class ContentViewerController < ApplicationController
if translation.language == locale
@page = translation
redirect_to :profile => @page.profile.identifier, :page => @page.explode_path
+ return true
end
end
end
end
+ false
end
def pass_without_comment_captcha?
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/4e9c7fe30d8730f107b72cab4dbf1ee6ee808ec2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150323/997558e8/attachment.html>
More information about the Noosfero-dev
mailing list