[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4993 - phpcompta/trunk/include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4993 - phpcompta/trunk/include |
Date: |
Sun, 24 Jun 2012 19:32:23 +0200 (CEST) |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r4993 - phpcompta/trunk/include,
phpcompta-dev <=