Body: <p>I have a scenario in civicase > Case Types with a Timeline with multiple activities inserted in the following way:</p>
  
  <pre><code>Activity Status Reference Offset Select
  Meeting Scheduled Meeting 7 Newest
  Meeting Scheduled Meeting 7 Newest
  Meeting Scheduled Meeting 7 Newest
  Meeting Scheduled Meeting 7 Newest
  </code></pre>
  
  <p>Before the upgrade this created 4 activities of type Meeting at an interval of 7 days from the newest inserted. Result if the newest was 1 september it created one on the 8th, 15th, 22nd and 29th.</p>
  
  <p>Now this is not working anymore.</p>
  
  <p>Now if in timeline I put two or more activities of same type with reference to the same type, offset 7 (one every week) and select Newest the result is that all activities are put 7 days after the first. That was not the way it worked before!!</p>
  
  <p>Any advice? Is it a bug? Is it a new behavior?
  Johan</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-02T09:05:45.793Z
Comments.Text: Really it's even stranger: If I run timeline twice it still schedules them all at 7 days after the first, giving me 7 activities on the same date. If I delete the first activity, the one it is making reference to, and run timeline again it still puts them all 7 days after the deleted activity!
Comments.UserDisplayName: Johan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-02T15:48:40.690Z
Comments.Text: It seems to work ok on the public demo. Possibly the way settings are stored has changed and the upgrade doesn't upgrade them. If you recreate the timeline definition does that fix it?
Comments.UserDisplayName: Demerit
Tags: <civicase><activities>
Title: Timeline not working as before in case activities after upgrade from 4.7 to 5.1
ThreadText: # Timeline not working as before in case activities after upgrade from 4.7 to 5.1
  
  (Asked by: username_0 on 2018-10-02)
  
  I have a scenario in civicase > Case Types with a Timeline with multiple activities inserted in the following way:
  
  ```
  Activity Status Reference Offset Select
  Meeting Scheduled Meeting 7 Newest
  Meeting Scheduled Meeting 7 Newest
  Meeting Scheduled Meeting 7 Newest
  Meeting Scheduled Meeting 7 Newest
  
  ```
  
  Before the upgrade this created 4 activities of type Meeting at an interval of 7 days from the newest inserted. Result if the newest was 1 september it created one on the 8th, 15th, 22nd and 29th.
  
  Now this is not working anymore.
  
  Now if in timeline I put two or more activities of same type with reference to the same type, offset 7 (one every week) and select Newest the result is that all activities are put 7 days after the first. That was not the way it worked before!!
  
  Any advice? Is it a bug? Is it a new behavior?
  username_0
  
  **Tags:** civicase, activities
  
  > **Comments:**
  > **username_0**: Really it's even stranger: If I run timeline twice it still schedules them all at 7 days after the first, giving me 7 activities on the same date. If I delete the first activity, the one it is making reference to, and run timeline again it still puts them all 7 days after the deleted activity!  
  > **username_1**: It seems to work ok on the public demo. Possibly the way settings are stored has changed and the upgrade doesn't upgrade them. If you recreate the timeline definition does that fix it?  
  
  ---
  
  ## 0 answers
  
  