phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r4781 - phpcompta/tags/rel600/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r4781 - phpcompta/tags/rel600/include
Date: Sat, 25 Feb 2012 15:48:43 +0100 (CET)

Author: danydb
Date: 2012-02-25 15:48:43 +0100 (Sat, 25 Feb 2012)
New Revision: 4781

Modified:
   phpcompta/tags/rel600/include/class_todo_list.php
Log:
0000531: Tableau de bord : pense-b?\195?\170te

Modified: phpcompta/tags/rel600/include/class_todo_list.php
===================================================================
--- phpcompta/tags/rel600/include/class_todo_list.php   2012-02-25 14:42:00 UTC 
(rev 4780)
+++ phpcompta/tags/rel600/include/class_todo_list.php   2012-02-25 14:48:43 UTC 
(rev 4781)
@@ -112,8 +112,7 @@
     {
         if ( isDate($this->tl_date) == false )
         {
-            alert('Date est invalide');
-            return 1;
+                       $this->tl_date=date('d.m.Y');
         }
         return 0;
     }
@@ -129,7 +128,7 @@
     {
         if ( $this->verify() != 0 ) return;
         if (trim($this->tl_title)=='')
-            $this->tl_title=substr(trim($this->tl_desc),0,40);
+            $this->tl_title=substr(trim($this->tl_desc),0,30);
 
         if (trim($this->tl_title)=='')
         {
@@ -138,7 +137,7 @@
         }
 
         /*  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,30);
 
         $sql="insert into todo_list (tl_date,tl_title,tl_desc,use_login) ".
              " values (to_date($1,'DD.MM.YYYY'),$2,$3,$4)  returning tl_id";



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]