From 68d92e59d292ef4740c2fb4283520ffb2fdbccdc Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 19 Jan 2026 17:29:02 +0100 Subject: [PATCH] Fix CI --- htdocs/variants/combinations.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/variants/combinations.php b/htdocs/variants/combinations.php index 360bea21987..a1f4ff625a3 100644 --- a/htdocs/variants/combinations.php +++ b/htdocs/variants/combinations.php @@ -950,8 +950,11 @@ if (!empty($id) || !empty($ref)) { print ''.$prodstatic->getNomUrl(1).''; print ''; - foreach ($comb2val->fetchByFkCombination($currcomb->id) as $pc2v) { - print dol_htmlentities($pc2v).'
'; + $arraycomb = $comb2val->fetchByFkCombination($currcomb->id); + if (is_array($arraycomb)) { + foreach ($arraycomb as $pc2v) { + print dolPrintHTML((string) $pc2v).'
'; // $pc2v is object ProductCombination2ValuePair, the (string) use the __toString to output it. + } } print ''; print ''.($currcomb->variation_price >= 0 ? '+' : '').price($currcomb->variation_price).($currcomb->variation_price_percentage ? ' %' : '').'';