Browse files

Fix cc_licensed attribute for news converted from a diary

  • Loading branch information...
1 parent 0edc6b1 commit 29d34ed3d3b4a972b6ffa3156e50442a59acd82f @nono nono committed Apr 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/diaries_controller.rb
View
2 app/controllers/diaries_controller.rb
@@ -73,7 +73,7 @@ def convert
@news.author_name = @diary.owner.try(:name)
@news.author_email = @diary.owner.try(:account).try(:email)
if @news.save
- @news.update_attribute(:cc_licensed, true) if @diary.node.cc_licensed?
+ @news.node.update_attribute(:cc_licensed, true) if @diary.node.cc_licensed?
@news.links.create :title => "Journal à l'origine de la dépêche", :url => "#{MY_DOMAIN}/users/#{@diary.owner.to_param}/journaux/#{@diary.to_param}", :lang => "fr"
@news.submit!
if current_account.amr?

0 comments on commit 29d34ed

Please sign in to comment.