Merge pull request #10062 from ptibogxiv/patch-94

Fix sql don.class.php
This commit is contained in:
Laurent Destailleur 2018-11-24 11:08:39 +01:00 committed by GitHub
commit 1398b94a80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -653,7 +653,7 @@ class Don extends CommonObject
} }
else if (! empty($ref)) else if (! empty($ref))
{ {
$sql.= " AND ref='".$this->db->escape($ref)."'"; $sql.= " AND d.ref='".$this->db->escape($ref)."'";
} }
dol_syslog(get_class($this)."::fetch", LOG_DEBUG); dol_syslog(get_class($this)."::fetch", LOG_DEBUG);