Browse Source

Force status to be picked when adding a comment

Alan Lam 4 years ago
parent
commit
a2d662d4a1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      views/ticket.php

+ 2 - 1
views/ticket.php

@@ -149,8 +149,9 @@ $render_data_row = static function(string $title, string $html): void {
 					<div class="mb-2">
 						<label class="form-label" for="status"><?=htmlspecialchars(__("Status"))?></label>
 						<select name="status" id="status" class="form-control">
+							<option value=""><?=htmlspecialchars(__("Select Status"))?></option>
 							<?php
-							HtmlHelper::renderOptions(TicketStatuses::options(), $ticket->status);
+							HtmlHelper::renderOptions(TicketStatuses::options());
 							?>
 						</select>
 					</div>