Update submission form to use SubmissionStatus enum, set items to pending by default
				
					
				
			This commit is contained in:
		
							parent
							
								
									9c8da8b857
								
							
						
					
					
						commit
						cd7a18f5a0
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -1,5 +1,7 @@
 | 
				
			||||||
<?php
 | 
					<?php
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					use Enums\SubmissionStatus;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if (!LOGGED_IN) {
 | 
					if (!LOGGED_IN) {
 | 
				
			||||||
    $title = "Log In";
 | 
					    $title = "Log In";
 | 
				
			||||||
    $description = "Log in to enter a work into this vote.";
 | 
					    $description = "Log in to enter a work into this vote.";
 | 
				
			||||||
| 
						 | 
					@ -141,7 +143,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST"):
 | 
				
			||||||
                    "doc_is_public" => $show_doc,
 | 
					                    "doc_is_public" => $show_doc,
 | 
				
			||||||
                    "name_is_public" => $show_name,
 | 
					                    "name_is_public" => $show_name,
 | 
				
			||||||
                    "transaction_id" => NULL,
 | 
					                    "transaction_id" => NULL,
 | 
				
			||||||
                    "status" => 1,
 | 
					                    "status" => SubmissionStatus::Pending,
 | 
				
			||||||
                    "is_freeroll" => 0,
 | 
					                    "is_freeroll" => 0,
 | 
				
			||||||
                    "created_at" => date("Y-m-d\TH:i:s\Z"),
 | 
					                    "created_at" => date("Y-m-d\TH:i:s\Z"),
 | 
				
			||||||
                ]);
 | 
					                ]);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue