Author: danydb
Date: 2013-07-10 19:18:05 +0200 (Wed, 10 Jul 2013)
New Revision: 522
Modified:
tag/rel660/rapport_avance/include/formulaire.inc.php
Log:
Message si sauvegarde non possible
Modified: tag/rel660/rapport_avance/include/formulaire.inc.php
===================================================================
--- tag/rel660/rapport_avance/include/formulaire.inc.php 2013-06-29
17:32:53 UTC (rev 521)
+++ tag/rel660/rapport_avance/include/formulaire.inc.php 2013-07-10
17:18:05 UTC (rev 522)
@@ -36,10 +36,19 @@
}
else
{
- echo '<p class="notice">'._(' dernière sauvegarde
').date('d-m-Y H:i').'</p>';
- RAPAV_formulaire::save_definition($_POST);
+ //echo '<p class="notice">'._(' dernière sauvegarde
').date('d-m-Y H:i').'</p>';
+ try
+ {
+ RAPAV_formulaire::save_definition($_POST);
+ echo '<p class="notice">'._(' dernière sauvegarde
').date('d-m-Y H:i').'</p>';
+ }
+ catch (Exception $exc)
+ {
+ echo '<p class="notice">'._(' Impossible de
sauver').$exc->getMessage().'</p>';
+
+ //throw $exc;
+ }
require_once 'formulaire_definition_show.inc.php';
- echo '<p class="notice">'._(' dernière sauvegarde
').date('d-m-Y H:i').'</p>';
exit();
}
}
---
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