[noosfero/noosfero][master] edit-article: move escaped body to fix save and edit feature
Rodrigo Souto
gitlab at gitlab.com
Fri Jun 12 12:35:50 BRT 2015
Rodrigo Souto pushed to branch master at Noosfero / noosfero
Commits:
a349d8fa by Rodrigo Souto at 2015-06-12T12:35:37Z
edit-article: move escaped body to fix save and edit feature
- - - - -
1 changed file:
- app/controllers/my_profile/cms_controller.rb
Changes:
=====================================
app/controllers/my_profile/cms_controller.rb
=====================================
--- a/app/controllers/my_profile/cms_controller.rb
+++ b/app/controllers/my_profile/cms_controller.rb
@@ -92,11 +92,6 @@ class CmsController < MyProfileController
@article.article_privacy_exceptions = params[:q].split(/,/).map{|n| environment.people.find n.to_i} unless params[:q].nil?
- unless @article.kind_of?(RssFeed)
- @escaped_body = CGI::escapeHTML(@article.body || '')
- @escaped_abstract = CGI::escapeHTML(@article.abstract || '')
- end
-
@tokenized_children = prepare_to_token_input(
profile.members.includes(:articles_with_access).find_all{ |m|
m.articles_with_access.include?(@article)
@@ -117,6 +112,11 @@ class CmsController < MyProfileController
end
end
end
+
+ unless @article.kind_of?(RssFeed)
+ @escaped_body = CGI::escapeHTML(@article.body || '')
+ @escaped_abstract = CGI::escapeHTML(@article.abstract || '')
+ end
end
def new
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/a349d8fa8307c5f07d04caf8775d1b34e3b94fbf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150612/a54f29ac/attachment.html>
More information about the Noosfero-dev
mailing list