From 564b244d0727848dcb808b95305f73ee76effdbe Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Fri, 9 Jul 2010 19:14:07 +0000 Subject: [PATCH] =?UTF-8?q?=20FS#121=20-=20Bug=20detail=20op=C3=A9ration?= =?UTF-8?q?=20,=20extourne,=20in=20extourne=20you=20can't=20choice=20a=20d?= =?UTF-8?q?ate=20solution=20:=20rename=20the=20date=20for=20the=20todo=20o?= =?UTF-8?q?bject,=20they=20had=20the=20same=20id=20(p=5Fdate)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- html/js/todo_list.js | 4 ++-- include/template/dashboard.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 '
'; echo '
'; -$wDate=new IDate('p_date'); +$wDate=new IDate('p_date_todo'); $wTitle=new IText('p_title'); $wDesc=new ITextArea('p_desc'); $wDesc->heigh=5;