Author: danydb
Date: 2011-12-18 19:52:50 +0100 (Sun, 18 Dec 2011)
New Revision: 210
Modified:
trunk/amortis/include/am_histo.inc.php
Log:
Bug : cannot remove in history, cause a FK to jrn.jr_internal
Modified: trunk/amortis/include/am_histo.inc.php
===================================================================
--- trunk/amortis/include/am_histo.inc.php 2011-12-15 15:08:14 UTC (rev
209)
+++ trunk/amortis/include/am_histo.inc.php 2011-12-18 18:52:50 UTC (rev
210)
@@ -49,7 +49,7 @@
{
if ( isset($_POST['p_sel'][$i]))
{
- $cn->exec_sql("update amortissement.amortissement_histo set
h_amount=0,h_pj='',jr_internal='' where ha_id=$1",
+ $cn->exec_sql("update amortissement.amortissement_histo set
h_amount=0,h_pj='',jr_internal=null where ha_id=$1",
array($_POST['h'][$i]));
}
}
_______________________________________________
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev