Author: danydb
Date: 2013-02-13 18:15:46 +0100 (Wed, 13 Feb 2013)
New Revision: 5179

Modified:
   phpcompta/tags/rel650/html/ajax_misc.php
Log:
0000788: Lettrage : date invalide, bloque

Modified: phpcompta/tags/rel650/html/ajax_misc.php
===================================================================
--- phpcompta/tags/rel650/html/ajax_misc.php    2013-02-13 17:05:32 UTC (rev 
5178)
+++ phpcompta/tags/rel650/html/ajax_misc.php    2013-02-13 17:15:46 UTC (rev 
5179)
@@ -326,7 +326,7 @@
                $date_error="";
                // start date
                $start = new IDate('search_start');
-               $start->value = (isset($search_start)) ? $search_start : 
$first_per->first_day();
+
                /*  check if date are valid */
                if (isset($search_start) && isDate($search_start) == null)
                {
@@ -336,8 +336,8 @@
                        ob_end_clean();
                        $search_start=$first_per->first_day();
                }
+               $start->value = (isset($search_start)) ? $search_start : 
$first_per->first_day();
 
-
                $line = td('Date Debut') . td($start->input());
                // end date
                $end = new IDate('search_end');



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

_______________________________________________
Phpcompta  est un logiciel libre de comptabilité en ligne 
(http://www.phpcompta.eu)
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev

Reply via email to