mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-19 21:04:44 +02:00
save record, then try to update (#1087)
This commit is contained in:
parent
44111696df
commit
3e26a1cf09
@ -592,9 +592,7 @@ class EditNode extends EditRecord
|
||||
}
|
||||
|
||||
try {
|
||||
$this->record = $this->nodeUpdateService->handle($record, $data);
|
||||
|
||||
return $this->record;
|
||||
$record = $this->nodeUpdateService->handle($record, $data);
|
||||
} catch (Exception $exception) {
|
||||
$this->errored = true;
|
||||
|
||||
@ -606,8 +604,9 @@ class EditNode extends EditRecord
|
||||
->warning()
|
||||
->send();
|
||||
|
||||
return parent::handleRecordUpdate($record, $data);
|
||||
}
|
||||
|
||||
return parent::handleRecordUpdate($record, $data);
|
||||
}
|
||||
|
||||
protected function getSavedNotification(): ?Notification
|
||||
|
Loading…
x
Reference in New Issue
Block a user