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

Updated by Andriy Lesyuk over 10 years ago

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 :

<pre><code class="diff"> <pre>
--- 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 ])
</code></pre> </pre>

Back

Terms of use | Privacy policy