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:
yfktn 2020-04-02 22:33:41 +07:00 committed by GitHub
parent b1d41caf03
commit 158fc43f62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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
]) ?>