From a1201437941d9086657dd044551760fffb239219 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Wed, 7 May 2025 17:36:31 +0400 Subject: [PATCH] =?UTF-8?q?possibilit=C3=A9=20de=20sauter=20une=20cellule?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nur_src/v/bs3/vc/CTable.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nur_src/v/bs3/vc/CTable.php b/nur_src/v/bs3/vc/CTable.php index 226c2f9..1ff1716 100644 --- a/nur_src/v/bs3/vc/CTable.php +++ b/nur_src/v/bs3/vc/CTable.php @@ -633,14 +633,15 @@ class CTable extends ComponentPrintable implements IParametrable { /** @var string|int clé de la colonne courante */ protected $col; - function colTd($value): array { + function colTd($value): ?array { $vs = $this->col($value); if ($this->colCtx !== null) { $vs = func::_call($this->colCtx, [$vs, $value, $this->col, $this->index, $this->row, $this->rawRow]); + if ($vs === false) return null; } else { $result = A::get($this->results, $this->col); $valid = $result === null || $result["valid"]; - $vs= [ + $vs = [ "class" => ["danger" => !$valid], $vs, ];