[Git][noosfero/noosfero][master] 2 commits: Fix redirection after uploading files
Tallys Martins
gitlab at mg.gitlab.com
Thu May 4 15:53:52 BRT 2017
Tallys Martins pushed to branch master at Noosfero / noosfero
Commits:
134e4e6d by Pedro de Lyra at 2017-04-04T17:06:38-03:00
Fix redirection after uploading files
Signed-off-by: Tallys Martins <tallysmartins at gmail.com>
- - - - -
964e1151 by Tallys Martins at 2017-05-04T18:53:44+00:00
Merge branch 'fix-file-uploading-redirect' into 'master'
Fix file upload redirect in communit subfolder
See merge request !1142
- - - - -
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
@@ -193,9 +193,7 @@ class CmsController < MyProfileController
@uploaded_files = []
@article = @parent = check_parent(params[:parent_id])
@target = @parent ? ('/%s/%s' % [profile.identifier, @parent.full_name]) : '/%s' % profile.identifier
- if @article
- record_coming
- end
+ record_coming
if request.post? && params[:uploaded_files]
params[:uploaded_files].each do |file|
unless file == ''
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/fd4af0ea600e9d3205bc9009f8cd41acdcf70e7a...964e1151a4c57366fdbb14e54869ac2aef5cdebc
---
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/fd4af0ea600e9d3205bc9009f8cd41acdcf70e7a...964e1151a4c57366fdbb14e54869ac2aef5cdebc
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170504/ae07feef/attachment-0001.html>
More information about the Noosfero-dev
mailing list