Enable displaying jsonable properties in backend lists (#2995)

This commit is contained in:
Oleg Samorai 2017-07-29 23:24:54 +03:00 committed by Luke Towers
parent 5a417d72d3
commit 2cc492f7dc
1 changed files with 3 additions and 0 deletions

View File

@ -232,6 +232,9 @@ class ListColumn
$result = $result->{$key};
}
else {
if (is_array($result) && array_key_exists($key, $result)) {
return $result[$key];
}
if (!isset($result->{$key})) {
return $default;
}