From ac9df4c0763c12c7e4f19a6bcfe499e397ac6fdf Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Tue, 14 Jul 2015 07:42:45 +1000 Subject: [PATCH] Lists support appended attributes in url links --- modules/backend/widgets/Lists.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/backend/widgets/Lists.php b/modules/backend/widgets/Lists.php index 080051e87..63e1f53fa 100644 --- a/modules/backend/widgets/Lists.php +++ b/modules/backend/widgets/Lists.php @@ -513,8 +513,10 @@ class Lists extends WidgetBase return null; } - $columns = array_keys($record->getAttributes()); - $url = RouterHelper::parseValues($record, $columns, $this->recordUrl); + $data = $record->toArray(); + $columns = array_keys($data); + + $url = RouterHelper::parseValues($data, $columns, $this->recordUrl); return Backend::url($url); }