Modif dand delete() pour la future gestion des contraintes
This commit is contained in:
parent
c997aca337
commit
77188fb1f4
@ -598,10 +598,10 @@ class Propal
|
|||||||
*/
|
*/
|
||||||
Function delete()
|
Function delete()
|
||||||
{
|
{
|
||||||
$sql = "DELETE FROM llx_propal WHERE rowid = $this->id;";
|
$sql = "DELETE FROM llx_propaldet WHERE fk_propal = $this->id ;";
|
||||||
if ( $this->db->query($sql) )
|
if ( $this->db->query($sql) )
|
||||||
{
|
{
|
||||||
$sql = "DELETE FROM llx_propaldet WHERE fk_propal = $this->id ;";
|
$sql = "DELETE FROM llx_propal WHERE rowid = $this->id;";
|
||||||
if ( $this->db->query($sql) )
|
if ( $this->db->query($sql) )
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user