Fixes relation render onclick in list view to obey $model->primaryKey value
Fixes #1454
This commit is contained in:
parent
6b3d82d10f
commit
d4ce89e9ba
|
|
@ -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()
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue