From c2952cb4ad2eb73fcbb93a62d71d2340d6bd583b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 21 May 2026 22:40:04 +0200 Subject: [PATCH] Fix ci --- htdocs/admin/index.php | 3 ++- htdocs/ai/tools/thirdparty.class.php | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/htdocs/admin/index.php b/htdocs/admin/index.php index 0d2a4eea82e..d8a3cc2a005 100644 --- a/htdocs/admin/index.php +++ b/htdocs/admin/index.php @@ -172,9 +172,10 @@ $arrayofeinvoiceneed = array( 'PL' => array('module' => array('ksef'), 'search' => 'ksef') ); +$urleinvoice = ''; + if ($mysoc->country_code && in_array($mysoc->country_code, array_keys($arrayofeinvoiceneed))) { $einvoiceneed = $arrayofeinvoiceneed[$mysoc->country_code]; - $urleinvoice = ''; $modulefound = ''; if (!empty($einvoiceneed['module'])) { foreach ($einvoiceneed['module'] as $module) { diff --git a/htdocs/ai/tools/thirdparty.class.php b/htdocs/ai/tools/thirdparty.class.php index 1b9ee66f3e2..2dd52069aa4 100644 --- a/htdocs/ai/tools/thirdparty.class.php +++ b/htdocs/ai/tools/thirdparty.class.php @@ -252,11 +252,11 @@ class ToolThirdParty extends McpTool $sql .= " AND s.rowid = " . (int) $query; $limit = 1; } else { - $sql .= " AND (s.nom LIKE '%" . $this->db->escape($q) . "%'"; - $sql .= " OR s.name_alias LIKE '%" . $this->db->escape($q) . "%'"; - $sql .= " OR s.code_client LIKE '%" . $this->db->escape($q) . "%'"; - $sql .= " OR s.code_fournisseur LIKE '%" . $this->db->escape($q) . "%'"; - $sql .= " OR s.email LIKE '%" . $this->db->escape($q) . "%')"; + $sql .= " AND (s.nom LIKE '%" . $this->db->escape($query) . "%'"; + $sql .= " OR s.name_alias LIKE '%" . $this->db->escape($query) . "%'"; + $sql .= " OR s.code_client LIKE '%" . $this->db->escape($query) . "%'"; + $sql .= " OR s.code_fournisseur LIKE '%" . $this->db->escape($query) . "%'"; + $sql .= " OR s.email LIKE '%" . $this->db->escape($query) . "%')"; } if ($type === 'customer') {