From 33d73eef62684ec9babc44491df1b75dbfd77bb2 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Sun, 6 Feb 2011 22:48:59 +0100 Subject: [PATCH] fix #1094 where due_id was not determined when updating todo from calendar view --- app/controllers/todos_controller.rb | 2 +- features/edit_a_todo.feature | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/todos_controller.rb b/app/controllers/todos_controller.rb index 83a8ef74..a8d53c73 100644 --- a/app/controllers/todos_controller.rb +++ b/app/controllers/todos_controller.rb @@ -1231,7 +1231,7 @@ class TodosController < ApplicationController source_view do |page| page.calendar do @old_due_empty = is_old_due_empty(@original_item_due_id) - @new_due_id = get_due_id_for_calendar(@todo.due) if @due_date_changed + @new_due_id = get_due_id_for_calendar(@todo.due) end page.tag do @tag_name = params['_tag_name'] diff --git a/features/edit_a_todo.feature b/features/edit_a_todo.feature index 8c158363..ddfb5df2 100644 --- a/features/edit_a_todo.feature +++ b/features/edit_a_todo.feature @@ -82,7 +82,7 @@ Feature: Edit a next action from every page | context page for "visible context" | Currently there are no deferred or pending actions | | project page for "visible project" | Currently there are no deferred or pending actions | - Scenario: I can edit a todo to change its description + Scenario: I can edit a todo to change its description # do for more pages, see #1094 Given this is a pending scenario Scenario: I can edit a todo to move it to another context