From 6c647f737181a435d53b51cf3c04a3e4aed4c5c5 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Mon, 15 Jan 2024 10:18:42 -0600 Subject: [PATCH] Fix default artwork status for new submissions --- www/artworks/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/artworks/post.php b/www/artworks/post.php index 95ac9409..dde9e6ff 100644 --- a/www/artworks/post.php +++ b/www/artworks/post.php @@ -31,7 +31,7 @@ try{ $artwork->CompletedYear = HttpInput::Int(POST, 'artwork-year'); $artwork->CompletedYearIsCirca = HttpInput::Bool(POST, 'artwork-year-is-circa', false) ?? false; $artwork->Tags = HttpInput::Str(POST, 'artwork-tags', false) ?? []; - $artwork->Status = HttpInput::Str(POST, 'artwork-status', false); + $artwork->Status = HttpInput::Str(POST, 'artwork-status', false) ?? ArtworkStatus::Unverified; $artwork->EbookWwwFilesystemPath = HttpInput::Str(POST, 'artwork-ebook-www-filesystem-path', false); $artwork->SubmitterUserId = $GLOBALS['User']->UserId ?? null; $artwork->IsPublishedInUs = HttpInput::Bool(POST, 'artwork-is-published-in-us', false);