From fe30eee16eeab560646ad35971c4f99f01c20b9b Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Wed, 21 Nov 2018 19:50:55 +0100 Subject: [PATCH] Fix sql don.class.php --- htdocs/don/class/don.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/don/class/don.class.php b/htdocs/don/class/don.class.php index 5e035febd14..b6604133c31 100644 --- a/htdocs/don/class/don.class.php +++ b/htdocs/don/class/don.class.php @@ -653,7 +653,7 @@ class Don extends CommonObject } 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);