diff --git a/Datatable/Column/ActionColumn.php b/Datatable/Column/ActionColumn.php index 781fc32d..7e720ea0 100644 --- a/Datatable/Column/ActionColumn.php +++ b/Datatable/Column/ActionColumn.php @@ -90,7 +90,14 @@ public function renderSingleField(array &$row) if (isset($row[$value])) { $parameters[$actionKey][$key] = $row[$value]; } else { - $parameters[$actionKey][$key] = $value; + $path = Helper::getDataPropertyPath($value); + $entry = $this->accessor->getValue($row, $path); + + if (!empty($entry)) { + $parameters[$actionKey][$key] = $entry; + } else { + $parameters[$actionKey][$key] = $value; + } } } } elseif ($routeParameters instanceof Closure) {