Author: danydb
Date: 2013-09-23 18:25:12 +0200 (Mon, 23 Sep 2013)
New Revision: 5412
Modified:
phpcompta/trunk/include/class_phpcompta_sql.php
Log:
Bug dans fonction save
Modified: phpcompta/trunk/include/class_phpcompta_sql.php
===================================================================
--- phpcompta/trunk/include/class_phpcompta_sql.php 2013-09-23 16:24:40 UTC
(rev 5411)
+++ phpcompta/trunk/include/class_phpcompta_sql.php 2013-09-23 16:25:12 UTC
(rev 5412)
@@ -90,7 +90,8 @@
$this->load();
}
public function save() {
- if ( $this->p_id == -1 )
+ $pk=$this->primary_key;
+ if ( $this->$pk== -1 )
$this->insert();
else
$this->update();
---
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