Skip to content

Commit

Permalink
Fix add project ticket to show all tickets but closed one instead of …
Browse files Browse the repository at this point in the history
…showing just closed tickets
  • Loading branch information
johnnyq committed Apr 1, 2024
1 parent 6d8ab56 commit da2fee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project_ticket_add_modal.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<option value="">- Select a Ticket -</option>
<?php

$sql_tickets_select = mysqli_query($mysqli, "SELECT * FROM tickets WHERE ticket_project_id != $project_id AND ticket_client_id = $client_id AND ticket_closed_at IS NOT NULL");
$sql_tickets_select = mysqli_query($mysqli, "SELECT * FROM tickets WHERE ticket_project_id != $project_id AND ticket_client_id = $client_id AND ticket_closed_at IS NULL");
while ($row = mysqli_fetch_array($sql_tickets_select)) {
$ticket_id_select = intval($row['ticket_id']);
$ticket_subject_select = nullable_htmlentities($row['ticket_subject']);
Expand Down

0 comments on commit da2fee7

Please sign in to comment.