Skip to content

Commit 0827746

Browse files
committed
register field events on update form
1 parent 1fe921d commit 0827746

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/app/Http/Controllers/Operations/UpdateOperation.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ public function edit($id)
6666
// get entry ID from Request (makes sure its the last ID for nested resources)
6767
$id = $this->crud->getCurrentEntryId() ?? $id;
6868
// get the info for that entry
69+
70+
// register any Model Events defined on fields
71+
$this->crud->registerFieldEvents();
6972

7073
$this->data['entry'] = $this->crud->getEntryWithLocale($id);
7174
$this->crud->setOperationSetting('fields', $this->crud->getUpdateFields());

0 commit comments

Comments
 (0)