FS#121 - Bug detail opération , extourne, in extourne you can't choice a date
solution : rename the date for the todo object, they had the same id (p_date)
This commit is contained in:
parent
a05898c4bc
commit
564b244d07
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 '<div id="add_todo_list" class="add_todo_list">';
|
||||
echo '<form method="post">';
|
||||
$wDate=new IDate('p_date');
|
||||
$wDate=new IDate('p_date_todo');
|
||||
$wTitle=new IText('p_title');
|
||||
$wDesc=new ITextArea('p_desc');
|
||||
$wDesc->heigh=5;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue