From e8e42099093d4968cb1654c8f15eb1e2be1ac2c7 Mon Sep 17 00:00:00 2001 From: Tschallacka Date: Wed, 5 Jul 2017 02:56:38 +0200 Subject: [PATCH] Fix inflexible relation toolbar (#2760) Improves support for models that don't use `id` as their primary key. --- .../backend/behaviors/relationcontroller/partials/_toolbar.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/backend/behaviors/relationcontroller/partials/_toolbar.htm b/modules/backend/behaviors/relationcontroller/partials/_toolbar.htm index 7e0c03224..3b23bd498 100644 --- a/modules/backend/behaviors/relationcontroller/partials/_toolbar.htm +++ b/modules/backend/behaviors/relationcontroller/partials/_toolbar.htm @@ -4,7 +4,7 @@ relationMakePartial('button_update', [ - 'relationManageId' => $relationViewModel->id + 'relationManageId' => $relationViewModel->getKey() ]) ?> relationMakePartial('button_'.$button) ?>