https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292013-10-20T09:30:54ZRedmineRedmine - Defect #15135: Issue#update_nested_set_attributes comparing nil with empty stringhttps://www.redmine.org/issues/15135?journal_id=526902013-10-20T09:30:54ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Category</strong> changed from <i>Issues</i> to <i>Code cleanup/refactoring</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Assignee</strong> set to <i>Jean-Philippe Lang</i></li><li><strong>Target version</strong> set to <i>2.4.0</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>I fixed the root cause in <code>parent_issue_id=</code> rather than the comparaison and added a few tests to make sure that this code is called only when needed (<a class="changeset" title="Fixed that issue nested set update is triggered even if parent is not changed (#15135)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/12226">r12226</a>), thanks for pointing this out.</p>