Fix inflexible relation toolbar (#2760)
Improves support for models that don't use `id` as their primary key.
This commit is contained in:
parent
1a5e86e38d
commit
e8e4209909
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<?php if ($button == 'update'): ?>
|
||||
<?= $this->relationMakePartial('button_update', [
|
||||
'relationManageId' => $relationViewModel->id
|
||||
'relationManageId' => $relationViewModel->getKey()
|
||||
]) ?>
|
||||
<?php else: ?>
|
||||
<?= $this->relationMakePartial('button_'.$button) ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue