Trigger change events when RelationController pivot records are created or updated (#4997)
Fixes #4996. When any pivot value change or add with relationManager, the filterFields will triggered too.
This commit is contained in:
parent
b1d41caf03
commit
158fc43f62
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
<?= Form::ajax('onRelationManagePivotUpdate', [
|
||||
'data' => ['_relation_field' => $relationField, 'manage_id' => $relationManageId],
|
||||
'data-request-success' => "$.oc.relationBehavior.changed('" . e($this->vars['relationField']) . "', 'updated')",
|
||||
'data-popup-load-indicator' => true
|
||||
]) ?>
|
||||
|
||||
|
|
@ -41,6 +42,7 @@
|
|||
|
||||
<?= Form::ajax('onRelationManagePivotCreate', [
|
||||
'data' => ['_relation_field' => $relationField, 'foreign_id' => $foreignId],
|
||||
'data-request-success' => "$.oc.relationBehavior.changed('" . e($this->vars['relationField']) . "', 'created')",
|
||||
'data-popup-load-indicator' => true
|
||||
]) ?>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue