mirror of
https://github.com/itflow-org/itflow
synced 2026-03-09 15:24:51 +00:00
Undo client scoping uses = instead of LIKE in tickets resolve.php --- see forum thread 2667
This commit is contained in:
@@ -15,7 +15,7 @@ $update_count = false;
|
|||||||
|
|
||||||
if (!empty($ticket_id)) {
|
if (!empty($ticket_id)) {
|
||||||
|
|
||||||
$ticket_row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT * FROM tickets WHERE ticket_id = '$ticket_id' AND ticket_resolved_at IS NULL AND ticket_client_id LIKE '$client_id' LIMIT 1"));
|
$ticket_row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT * FROM tickets WHERE ticket_id = '$ticket_id' AND ticket_resolved_at IS NULL AND ticket_client_id = $client_id LIMIT 1"));
|
||||||
|
|
||||||
// Grab what we need, not using the model
|
// Grab what we need, not using the model
|
||||||
$ticket_id = intval($ticket_row['ticket_id']); // Override so things fail if this is bad
|
$ticket_id = intval($ticket_row['ticket_id']); // Override so things fail if this is bad
|
||||||
|
|||||||
Reference in New Issue
Block a user