Bug #267

Feature #36: associate publications with projects

Feature #216: Publication Edit View

Edit Publication action does not work

Added by Chris Cannam about 8 years ago. Updated about 8 years ago.

Status:ClosedStart date:2011-08-19
Priority:NormalDue date:
Assignee:Luis Figueira% Done:

0%

Category:-
Target version:Bibliography Alpha

Description

Clicking "Edit Publication" on a publication gives

NoMethodError in Publications#edit

Showing vendor/plugins/redmine_bibliography/app/views/publications/_authorship_fields.rhtml where line #24 raised:

You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.inject

Extracted source (around line #24):

21:     </div>    
22: 
23:     <div class="splitcontentright">       
24:       <%= f.select :search_results, options_for_select(@author_options), {}, {:size => 5, 
25:         :onChange => remote_function( :url => { :controller => :publications, :action => :get_user_info, :object_id => form_object_id(f.object_name) }, :with => "'value=' + 
26:         value" )} %>
27:     </div>    

Trace of template inclusion: vendor/plugins/redmine_bibliography/app/views/publications/_form.html.erb, vendor/plugins/redmine_bibliography/app/views/publications/edit.html.erb

RAILS_ROOT: /var/www/test-cannam
Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"project_id"=>"subsubgruffle",
 "id"=>"14"}

Show session dump
Response

Headers:

{"Content-Type"=>"text/html",
 "Cache-Control"=>"no-cache"}

History

#1 Updated by Luis Figueira about 8 years ago

  • Status changed from New to Closed

Solved in 3221b2ab7804

Also available in: Atom PDF