From 23dc27e67908e9cd2d3124699f4e5183eefadd8e Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Wed, 5 Aug 2015 07:48:18 +1000 Subject: [PATCH] Ensure the models primary key is always available in the URL values Fixes https://github.com/rainlab/forum-plugin/issues/74 --- modules/backend/widgets/Lists.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/backend/widgets/Lists.php b/modules/backend/widgets/Lists.php index b9385bbde..8bb979026 100644 --- a/modules/backend/widgets/Lists.php +++ b/modules/backend/widgets/Lists.php @@ -520,6 +520,8 @@ class Lists extends WidgetBase } $data = $record->toArray(); + $data += [$record->getKeyName() => $record->getKey()]; + $columns = array_keys($data); $url = RouterHelper::parseValues($data, $columns, $this->recordUrl);