Fix: Empty markdown was never saved
This commit is contained in:
parent
eaa8cedd81
commit
f6f596f22f
|
@ -177,10 +177,14 @@ public function load(): void
|
||||||
*/
|
*/
|
||||||
public function save(): void
|
public function save(): void
|
||||||
{
|
{
|
||||||
|
$attachmentsSaved = $this->saveAttachments();
|
||||||
|
$metadataSaved = $this->saveMetadata();
|
||||||
|
$markdownSaved = $this->saveMarkdown();
|
||||||
|
|
||||||
if (
|
if (
|
||||||
$this->saveAttachments()
|
$attachmentsSaved
|
||||||
|| $this->saveMetadata()
|
|| $metadataSaved
|
||||||
|| $this->saveMarkdown()
|
|| $markdownSaved
|
||||||
) {
|
) {
|
||||||
$this->touch();
|
$this->touch();
|
||||||
}
|
}
|
||||||
|
|
|
@ -111,7 +111,7 @@ public function save(): bool
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->disk->put($this->filename, $this->content);
|
$this->disk->put($this->filename, $this->content ?? '');
|
||||||
|
|
||||||
$this->originalContent = $this->content;
|
$this->originalContent = $this->content;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user