Commit 3b0b05ceb27c8ee393e9f56fd275a28b6dc6213b
1 parent
fae31ae0
Exists in
master
and in
8 other branches
Added verify on proposal_source if the article_parent exists
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
lib/proposals_discussion_plugin/proposal_task.rb
@@ -301,7 +301,8 @@ class ProposalsDiscussionPlugin::ProposalTask < Task | @@ -301,7 +301,8 @@ class ProposalsDiscussionPlugin::ProposalTask < Task | ||
301 | end | 301 | end |
302 | 302 | ||
303 | def proposal_source | 303 | def proposal_source |
304 | - article_parent.name | 304 | + parent = article_parent |
305 | + parent.name if parent | ||
305 | end | 306 | end |
306 | 307 | ||
307 | protected | 308 | protected |