diff --git a/modules/backend/behaviors/RelationController.php b/modules/backend/behaviors/RelationController.php index 9b23b589d..20006f29e 100644 --- a/modules/backend/behaviors/RelationController.php +++ b/modules/backend/behaviors/RelationController.php @@ -555,7 +555,8 @@ class RelationController extends ControllerBehavior $config->recordUrl = $this->getConfig('view[recordUrl]', null); $defaultOnClick = sprintf( - "$.oc.relationBehavior.clickViewListRecord(':id', '%s', '%s')", + "$.oc.relationBehavior.clickViewListRecord(':%s', '%s', '%s')", + $this->relationModel->getKeyName(), $this->field, $this->relationGetSessionKey() );