Author: danydb
Date: 2011-12-04 22:26:23 +0100 (Sun, 04 Dec 2011)
New Revision: 4557
Modified:
phpcompta/trunk/include/class_acc_ledger.php
Log:
potential bug [ if ($this->id=-1) ] is not a test
Modified: phpcompta/trunk/include/class_acc_ledger.php
===================================================================
--- phpcompta/trunk/include/class_acc_ledger.php 2011-12-04 21:25:21 UTC
(rev 4556)
+++ phpcompta/trunk/include/class_acc_ledger.php 2011-12-04 21:26:23 UTC
(rev 4557)
@@ -2345,7 +2345,7 @@
/* input poste comptable */
$f_accounting=new IPoste('accounting');
$f_accounting->value=(isset($_REQUEST['accounting']))?$_REQUEST['accounting']:'';
- if ( $this->id=-1) $jrn=0;
+ if ( $this->id==-1) $jrn=0;
else $jrn=$this->id;
$f_accounting->set_attribute('jrn',$jrn);
$f_accounting->set_attribute('ipopup','ipop_account');
_______________________________________________
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev