Fixed incorrect status check
authorMarcel Werk <burntime@woltlab.com>
Mon, 25 Apr 2022 08:40:53 +0000 (10:40 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 25 Apr 2022 08:40:53 +0000 (10:40 +0200)
wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php

index 14193e42ebf41d12adc0b58a43da3708cf03f2b1..376f600539383b4d40dcfe6a80dfdf344862ac60 100644 (file)
@@ -626,7 +626,7 @@ class ArticleAddForm extends AbstractForm
     protected function getArticleTimestamp(): int
     {
         $time = $this->timeObj->getTimestamp();
-        if ($time > \TIME_NOW && $this->publicationStatus == Article::DELAYED_PUBLICATION) {
+        if ($time > \TIME_NOW && $this->publicationStatus == Article::PUBLISHED) {
             $time = \TIME_NOW;
         }