mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix: Mysql 3.1 compatibility
This commit is contained in:
parent
c1f39f3714
commit
cc08dab7c6
|
|
@ -731,9 +731,9 @@ class Facture extends CommonObject
|
|||
// On désaffecte de la facture les remises liées
|
||||
if (sizeof($list_rowid_det))
|
||||
{
|
||||
$sql = 'UPDATE '.MAIN_DB_PREFIX.'societe_remise_except as re';
|
||||
$sql.= ' SET re.fk_facture = NULL';
|
||||
$sql.= ' WHERE re.fk_facture in ('.join(',',$list_rowid_det).')';
|
||||
$sql = 'UPDATE '.MAIN_DB_PREFIX.'societe_remise_except';
|
||||
$sql.= ' SET fk_facture = NULL';
|
||||
$sql.= ' WHERE fk_facture in ('.join(',',$list_rowid_det).')';
|
||||
|
||||
dolibarr_syslog("Facture.class::delete sql=".$sql);
|
||||
if (! $this->db->query($sql))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user