Pārlūkot izejas kodu

Force status to be picked when adding a comment

Alan Lam 4 gadi atpakaļ
vecāks
revīzija
a2d662d4a1
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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">
 					<div class="mb-2">
 						<label class="form-label" for="status"><?=htmlspecialchars(__("Status"))?></label>
 						<label class="form-label" for="status"><?=htmlspecialchars(__("Status"))?></label>
 						<select name="status" id="status" class="form-control">
 						<select name="status" id="status" class="form-control">
+							<option value=""><?=htmlspecialchars(__("Select Status"))?></option>
 							<?php
 							<?php
-							HtmlHelper::renderOptions(TicketStatuses::options(), $ticket->status);
+							HtmlHelper::renderOptions(TicketStatuses::options());
 							?>
 							?>
 						</select>
 						</select>
 					</div>
 					</div>