Parcourir la source

Force status to be picked when adding a comment

Alan Lam il y a 4 ans
Parent
commit
a2d662d4a1
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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>