1
0
Fork 0

Update submission form to use SubmissionStatus enum, set items to pending by default

This commit is contained in:
Ainsley Ellis 2024-11-22 06:48:57 -05:00
parent 9c8da8b857
commit cd7a18f5a0

View file

@ -1,5 +1,7 @@
<?php
use Enums\SubmissionStatus;
if (!LOGGED_IN) {
$title = "Log In";
$description = "Log in to enter a work into this vote.";
@ -141,7 +143,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST"):
"doc_is_public" => $show_doc,
"name_is_public" => $show_name,
"transaction_id" => NULL,
"status" => 1,
"status" => SubmissionStatus::Pending,
"is_freeroll" => 0,
"created_at" => date("Y-m-d\TH:i:s\Z"),
]);