comparison vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb @ 666:865d079e5fa0 feature_36

The create publication notice is now being called in the Publications Controller.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Fri, 09 Sep 2011 16:50:33 +0100
parents 6246ad0f9e98
children 9fabf0da3b09
comparison
equal deleted inserted replaced
661:6246ad0f9e98 666:865d079e5fa0
29 29
30 @publication = Publication.new(params[:publication]) 30 @publication = Publication.new(params[:publication])
31 @publication.projects << @project unless @project.nil? 31 @publication.projects << @project unless @project.nil?
32 32
33 if @publication.save 33 if @publication.save
34 @publication.notify_authors_publication_added(@project)
35
34 flash[:notice] = "Successfully created publication." 36 flash[:notice] = "Successfully created publication."
35 redirect_to :action => :show, :id => @publication, :project_id => @project 37 redirect_to :action => :show, :id => @publication, :project_id => @project
36 else 38 else
37 render :action => 'new', :project_id => @project 39 render :action => 'new', :project_id => @project
38 end 40 end