Fix sql don.class.php

This commit is contained in:
ptibogxiv 2018-11-21 19:50:55 +01:00 committed by GitHub
parent 5e9abe6aad
commit fe30eee16e
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);