diff --git a/html/js/todo_list.js b/html/js/todo_list.js index fafce3cc4..a586022b5 100644 --- a/html/js/todo_list.js +++ b/html/js/todo_list.js @@ -56,7 +56,7 @@ function todo_list_show_success(req) { if ( tl_id.length == 0 ) { var rec=req.responseText;alert ('erreur :'+rec);} $('p_title').value=getNodeText(tl_title[0]); - $('p_date').value=getNodeText(tl_date[0]); + $('p_date_todo').value=getNodeText(tl_date[0]); $('p_desc').value=getNodeText(tl_desc[0]); $('tl_id').value=getNodeText(tl_id[0]); $('add_todo_list').style.display='block'; @@ -72,7 +72,7 @@ function add_todo() { $('add_todo_list').style.display='block'; $('p_title').value=''; - $('p_date').value=''; + $('p_date_todo').value=''; $('p_desc').value=''; $('tl_id').value=0; } diff --git a/include/template/dashboard.php b/include/template/dashboard.php index a69946708..c8bbb416c 100644 --- a/include/template/dashboard.php +++ b/include/template/dashboard.php @@ -16,14 +16,14 @@ if ( isset($_REQUEST['save_todo_list'])) { $add_todo->set_parameter('id',$_REQUEST['tl_id']); $add_todo->set_parameter('title',$_REQUEST['p_title']); $add_todo->set_parameter('desc',$_REQUEST['p_desc']); - $add_todo->set_parameter('date',$_REQUEST['p_date']); + $add_todo->set_parameter('date',$_REQUEST['p_date_todo']); $add_todo->save(); } $todo=new Todo_List($cn); $array=$todo->load_all(); echo '