[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4567 - phpcompta/trunk/include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4567 - phpcompta/trunk/include |
Date: |
Tue, 6 Dec 2011 23:00:32 +0100 (CET) |
Author: danydb
Date: 2011-12-06 23:00:31 +0100 (Tue, 06 Dec 2011)
New Revision: 4567
Modified:
phpcompta/trunk/include/class_todo_list.php
Log:
0000486: Todo list :N'enregistre pas le titre
Modified: phpcompta/trunk/include/class_todo_list.php
===================================================================
--- phpcompta/trunk/include/class_todo_list.php 2011-12-06 21:53:52 UTC (rev
4566)
+++ phpcompta/trunk/include/class_todo_list.php 2011-12-06 22:00:31 UTC (rev
4567)
@@ -30,7 +30,7 @@
* This class manages the table todo_list
*
*
- * Data Member :
+ * Data Member :
* - $cn database connx
* - $variable
* - id (todo_list.tl_id)
@@ -38,7 +38,7 @@
* - title (todo_list.title)
* - desc (todo_list.tl_desc)
* - owner (todo_list.use_id)
- *
+ *
*/
class Todo_List
{
@@ -160,14 +160,14 @@
if (trim($this->tl_title)=='')
$this->tl_title=substr(trim($this->tl_desc),0,40);
- if (trim($this->tl_title)=='')
+ if (trim($this->tl_desc)=='')
{
alert('La note est vide');
return;
}
/* limit the title to 35 char */
- $this->tl_title=substr(trim($this->tl_desc),0,40);
+ $this->tl_title=substr(trim($this->tl_title),0,40);
$sql="update todo_list set
tl_title=$1,tl_date=to_date($2,'DD.MM.YYYY'),tl_desc=$3 ".
" where tl_id = $4";
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4567 - phpcompta/trunk/include,
phpcompta-dev <=