ZoroXing / r-labs

Automatically exported from code.google.com/p/r-labs
0 stars 0 forks source link

Create new project ERROR on V0.5.1 #47

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.install V0.5.1
2.Create a new project
3.

h2. What is the expected output? What do you see instead?

Processing ProjectsController#new (for xxxx at 2011-10-10 00:33:20) [GET]
Parameters: {"action"=>"new", "controller"=>"projects"}
Rendering template within layouts/base
Rendering projects/new

ActionView::TemplateError (undefined method `tracker_id' for nil:NilClass) on 
line #28 of vendor/plugins/redmine_code_review/app/vie 
ws/code_review/_body_bottom.rhtml:
25: is_target = false unless User.current.allowed_to?({:controller => 
'code_review', :action => 'update_diff_view'}, project)
26: setting = CodeReviewProjectSetting.find(:first, :conditions => ['project_id 
= ?', project.id])
27: is_target = false unless setting
28: is_target = false unless setting.tracker_id
29: action_name = controller.action_name
30: is_target = false unless action_name
31: is_target = false unless (controller.class.name == 'RepositoriesController' 
or controller.class.name == 'AttachmentsController ')

What version of the product are you using? On what operating system?
V0.5.1 Centos 6.0

Please provide any additional information below.

open the file: 
~/vendor/plugins/redmine_code_review/app/views/code_review/_bogy_bottom.rhtml
append follow lines after the #27

  if !is_target then
    return ''
  end

Original issue reported on code.google.com by wucha...@gmail.com on 10 Oct 2011 at 2:55

GoogleCodeExporter commented 8 years ago
Thank you for your reporting.

Latest version of the Code Review plugin is 0.4.3. 
What is V0.5.1?

This problem is already fixed in revision d6c7b8ac7200
https://bitbucket.org/haru_iida/redmine_code_review/changeset/d6c7b8ac7200#chg-a
pp/views/code_review/_body_bottom.rhtml

And my repository moved from here to bitbucket.

Thanks.

Original comment by haru.ii.a9i1e on 11 Oct 2011 at 4:08