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>
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>