From 541ea7269fe04a0260856c404f2e781817b46d24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20ALFAIATE?= Date: Tue, 24 Mar 2020 16:55:52 +0700 Subject: [PATCH] Fix LinkColumn --- Datatable/Column/LinkColumn.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Datatable/Column/LinkColumn.php b/Datatable/Column/LinkColumn.php index e9468cce..51f0683e 100644 --- a/Datatable/Column/LinkColumn.php +++ b/Datatable/Column/LinkColumn.php @@ -118,11 +118,10 @@ public function renderSingleField(array &$row) $content .= ''; } } - } else { - $content = $this->getEmptyValue(); + $this->accessor->setValue($row, $path, $content); } - $this->accessor->setValue($row, $path, $content); + return $this; } /** @@ -194,8 +193,6 @@ public function renderToMany(array &$row) $this->accessor->setValue($row, $path, $this->getEmptyValue()); } } - } else { - $this->accessor->setValue($row, $path, $this->getEmptyValue()); } return $this;