Author: danydb
Date: 2012-06-24 19:32:22 +0200 (Sun, 24 Jun 2012)
New Revision: 4993

Modified:
   phpcompta/trunk/include/profile.inc.php
Log:
when profile delete do not show the detail

Modified: phpcompta/trunk/include/profile.inc.php
===================================================================
--- phpcompta/trunk/include/profile.inc.php     2012-06-24 17:25:57 UTC (rev 
4992)
+++ phpcompta/trunk/include/profile.inc.php     2012-06-24 17:32:22 UTC (rev 
4993)
@@ -167,16 +167,16 @@
                $cn->start();
                if ($p_id == 1)
                {
-                       throw new Exception('On ne peut effacer le profil par 
défaut');
+                       throw new Exception('On ne peut pas effacer le profil 
par défaut');
                }
                $new_id = $cn->get_value("delete from profile
                        where p_id=$1 ", array($p_id));
                $cn->commit();
+
        }
        catch (Exception $exc)
        {
                echo alert($exc->getMessage());
-               ;
                $cn->rollback();
        }
 }
@@ -346,4 +346,8 @@
        require_once 'ajax_get_profile.php';
 }
 echo '</div>';
+if ( isset($_POST['delete_profil'] ))
+{
+       echo create_script(" $('detail_profile').hide()");
+}
 ?>



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

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

Reply via email to