From e8b1afdb71b61450a9065ad36c7906b7b1afb7a7 Mon Sep 17 00:00:00 2001 From: nickpons666 Date: Wed, 7 Jan 2026 23:26:07 -0600 Subject: [PATCH] Fix collation issue in productos search by removing BINARY Removed BINARY keyword from LIKE clauses to allow proper comparison between UTF-8 search terms and latin1_swedish_ci database values. BINARY was causing exact match issues preventing search functionality. --- classes/producto.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/producto.class.php b/classes/producto.class.php index 536f854..aef78e8 100755 --- a/classes/producto.class.php +++ b/classes/producto.class.php @@ -686,10 +686,10 @@ class Producto extends Main $sqlAdd .= ' AND p.prodCatId = "'.$this->prodCatId.'"'; if($this->descripcion) - $sqlAdd .= ' AND p.modelo LIKE BINARY "%'.$this->descripcion.'%"'; + $sqlAdd .= ' AND p.modelo LIKE "%'.$this->descripcion.'%"'; if($this->codigoBarra) - $sqlAdd .= ' AND p.codigoBarra LIKE BINARY "%'.$this->codigoBarra.'%"'; + $sqlAdd .= ' AND p.codigoBarra LIKE "%'.$this->codigoBarra.'%"'; if($sqlAdd != ''){