Permalink
Browse files

Fixing ArticleConductor

  • Loading branch information...
Michael Maltese
Michael Maltese committed Sep 11, 2011
1 parent c54bfcf commit 24ad202fa0e38f2693778155a22913bc0f758eb2
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/conductors/workflow/issues/article_conductor.rb
@@ -2,7 +2,7 @@ class Workflow::Issues::ArticleConductor < Workflow::Conductor
def initialize(opts={})
@article = Article.new
@article.section_id = opts[:section_id]
- @article.issue_id = opts[:issue_id]
+ @article.issue_id = (opts[:issue].try(:id) or opts[:issue_id])
@workflow = @article.workflow
@workflow.name = opts[:name]
end

0 comments on commit 24ad202

Please sign in to comment.