We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08432ea commit 0173b59Copy full SHA for 0173b59
src/app/Http/Controllers/Operations/UpdateOperation.php
@@ -63,14 +63,16 @@ protected function setupUpdateDefaults()
63
public function edit($id)
64
{
65
$this->crud->hasAccessOrFail('update');
66
+
67
// get entry ID from Request (makes sure its the last ID for nested resources)
68
$id = $this->crud->getCurrentEntryId() ?? $id;
- // get the info for that entry
69
70
// register any Model Events defined on fields
71
$this->crud->registerFieldEvents();
72
-
73
+ // get the info for that entry
74
$this->data['entry'] = $this->crud->getEntryWithLocale($id);
75
76
$this->crud->setOperationSetting('fields', $this->crud->getUpdateFields());
77
78
$this->data['crud'] = $this->crud;
0 commit comments