From 5fcde418055aca8b52134c1aaf0e43a8c888a4bc Mon Sep 17 00:00:00 2001 From: Martin Czuchra Date: Fri, 25 Oct 2013 17:37:37 +0200 Subject: [PATCH] Restores parents and grouping in timelines. --- app/assets/javascripts/timelines.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/timelines.js b/app/assets/javascripts/timelines.js index 250b3f70f0..824efee403 100644 --- a/app/assets/javascripts/timelines.js +++ b/app/assets/javascripts/timelines.js @@ -875,12 +875,10 @@ Timeline = { } // project → parent - if (e.parent) { - e.parent = dataEnhancer.getElement(Timeline.Project, e.parent.id); - } - else { - e.parent = undefined; + if (e.parent_id) { + e.parent = dataEnhancer.getElement(Timeline.Project, e.parent_id); } + delete e.parent_id; }); };