From 80a187262960a16ca5d8838075f992053be775b0 Mon Sep 17 00:00:00 2001 From: Josh Hagel Date: Tue, 28 May 2019 15:50:30 -0700 Subject: [PATCH] Allow Titles to be published from draft --- src/services/EntryRevisions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/EntryRevisions.php b/src/services/EntryRevisions.php index 34d5e0ebd15..6f7ef10297e 100644 --- a/src/services/EntryRevisions.php +++ b/src/services/EntryRevisions.php @@ -247,7 +247,7 @@ public function saveDraft(EntryDraft $draft, bool $runValidation = true): bool public function publishDraft(EntryDraft $draft, bool $runValidation = true): bool { // If this is a single, we'll have to set the title manually - if ($draft->getSection()->type == Section::TYPE_SINGLE) { + if ($draft->getSection()->type == Section::TYPE_SINGLE && empty($draft->title)) { $draft->title = $draft->getSection()->name; }