[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r4860 - phpcompta/trunk/include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r4860 - phpcompta/trunk/include |
Date: |
Sat, 2 Jun 2012 13:30:47 +0200 (CEST) |
Author: danydb
Date: 2012-06-02 13:30:47 +0200 (Sat, 02 Jun 2012)
New Revision: 4860
Modified:
phpcompta/trunk/include/class_follow_up.php
phpcompta/trunk/include/class_follow_up_detail.php
Log:
delete empty row in action_detail while update
Modified: phpcompta/trunk/include/class_follow_up.php
===================================================================
--- phpcompta/trunk/include/class_follow_up.php 2012-06-02 11:22:50 UTC (rev
4859)
+++ phpcompta/trunk/include/class_follow_up.php 2012-06-02 11:30:47 UTC (rev
4860)
@@ -936,6 +936,7 @@
{
$act = new Follow_Up_Detail($this->db);
$act->from_array($_POST, $i);
+ if ( $act->f_id == 0 && $act->ad_id != 0 )
$act->delete();
if ($act->f_id == 0 ) continue;
$act->save();
}
Modified: phpcompta/trunk/include/class_follow_up_detail.php
===================================================================
--- phpcompta/trunk/include/class_follow_up_detail.php 2012-06-02 11:22:50 UTC
(rev 4859)
+++ phpcompta/trunk/include/class_follow_up_detail.php 2012-06-02 11:30:47 UTC
(rev 4860)
@@ -188,8 +188,9 @@
}
public function delete()
{
- exit(__FILE__.__LINE__.' : Non implémenté');
- }
+ $sql="delete from action_detail where ad_id=$1";
+ $this->db->exec_sql($sql,array($this->ad_id));
+ }
/*!\brief Fill an Action_Detail Object with the data contained in an array
*\param $array
- [ad_id7] => ad_id
---
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] r4860 - phpcompta/trunk/include,
phpcompta-dev <=