Skip to content

Commit 0173b59

Browse files
committed
cleanup
1 parent 08432ea commit 0173b59

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,16 @@ protected function setupUpdateDefaults()
6363
public function edit($id)
6464
{
6565
$this->crud->hasAccessOrFail('update');
66+
6667
// get entry ID from Request (makes sure its the last ID for nested resources)
6768
$id = $this->crud->getCurrentEntryId() ?? $id;
68-
// get the info for that entry
6969

7070
// register any Model Events defined on fields
7171
$this->crud->registerFieldEvents();
72-
72+
73+
// get the info for that entry
7374
$this->data['entry'] = $this->crud->getEntryWithLocale($id);
75+
7476
$this->crud->setOperationSetting('fields', $this->crud->getUpdateFields());
7577

7678
$this->data['crud'] = $this->crud;

0 commit comments

Comments
 (0)