Trigger the change.oc.formwidget event on update of records through relationcontroller. (#4673)
Fixes #4625. Credit to @danielbidala for the initial report and proposed fix.
This commit is contained in:
parent
773f266373
commit
06ba8c712f
|
|
@ -1,7 +1,11 @@
|
|||
<div id="<?= $relationManageWidget->getId('managePopup') ?>">
|
||||
<?php if ($relationManageId): ?>
|
||||
|
||||
<?= Form::ajax('onRelationManageUpdate', ['data-popup-load-indicator' => true, 'sessionKey' => $newSessionKey]) ?>
|
||||
<?= Form::ajax('onRelationManageUpdate', [
|
||||
'data-popup-load-indicator' => true,
|
||||
'sessionKey' => $newSessionKey,
|
||||
'data-request-success' => "$.oc.relationBehavior.changed('" . e($this->vars['relationField']) . "', 'updated')",
|
||||
]) ?>
|
||||
|
||||
<!-- Passable fields -->
|
||||
<input type="hidden" name="manage_id" value="<?= $relationManageId ?>" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue