fix error where editing start date or end date for a recurring todo does not show the calendar

This commit is contained in:
Reinier Balt 2008-07-25 20:39:22 +02:00
parent 186fd5694d
commit a981595bce
2 changed files with 7 additions and 5 deletions

View file

@ -32,8 +32,10 @@ class RecurringTodosController < ApplicationController
# we needed to rename the recurring_period selector in the edit form
# because the form for a new recurring todo and the edit form are on the
# same page.
# same page. Same goed for start_from and end_date
params['recurring_todo']['recurring_period']=params['recurring_edit_todo']['recurring_period']
params['recurring_todo']['end_date']=params['recurring_todo_edit_end_date']
params['recurring_todo']['start_from']=params['recurring_todo_edit_start_from']
# update project
if params['recurring_todo']['project_id'].blank? && !params['project_name'].nil?