I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Bug #2275

Wrong method name in section_project_patch.rb

Added by Nicolas Brisac over 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Major
Assignee:
Category:
-
Target version:
Start date:
09 Jan 2014
Due date:
31 May 2014
% Done:

100%

Redmine version:
2.4.1
External issue:

Description

Looks like a typo.

session_id should be section_id at line 48.
It causes a 500 error and, obviously, the project is not assigned to the proper section.

Here is a patch :

--- lib/section_project_patch.rb    2014-01-09 12:43:26.000000000 +0000
+++ lib/section_project_patch.rb.new    2014-01-09 12:43:10.000000000 +0000
@@ -45,7 +45,7 @@

         def update_descendants
             if child?
-                update_attribute(:session_id, parent.session_id)
+                update_attribute(:section_id, parent.section_id)
             end
             Project.update_all({ :section_id => self.section_id },
                                [ 'lft > ? AND rgt < ?', self.lft, self.rgt ])

Associated revisions

Revision 18 (diff)
Added by Andriy Lesyuk almost 10 years ago

Renamed CSS file, applied community patches (#2252, #2253, #2275 and #2279)

History

#1 Updated by Andriy Lesyuk almost 10 years ago

  • Status changed from New to Open
  • Assignee set to Andriy Lesyuk
  • Target version set to 0.0.2

#2 Updated by Andriy Lesyuk almost 10 years ago

  • Due date set to 31 May 2014
  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Thank you very much, Nicolas Brisac!

#3 Updated by Andriy Lesyuk almost 10 years ago

  • Description updated (diff)

Also available in: Atom PDF

Terms of use | Privacy policy