Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #658 from Bruce17/patch-5
Browse files Browse the repository at this point in the history
Fix ActionColumn route parameters handling
  • Loading branch information
stwe authored Aug 6, 2017
2 parents 57ca0b8 + e70e7c0 commit 55c220b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Datatable/Column/ActionColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 55c220b

Please sign in to comment.