Allow to search by project reference number

This commit is contained in:
johnnyq 2025-04-21 17:16:35 -04:00
parent f1a7b35aa6
commit b309081d75
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ This file documents all notable changes made to ITFlow.
- Set default to date to 2035-12-31 as 9999-12-31 and 2999-12-31 broke certain browsers.
- Update Client PDF Export, add header added company logo.
- Present Larger clearer Warning about updates on update page.
- Allow to search by project reference.
## [25.03.5]

View File

@ -48,7 +48,7 @@ $sql_projects = mysqli_query(
LEFT JOIN clients ON client_id = project_client_id
LEFT JOIN users ON user_id = project_manager
WHERE DATE(project_created_at) BETWEEN '$dtf' AND '$dtt'
AND (project_name LIKE '%$q%' OR project_description LIKE '%$q%' OR user_name LIKE '%$q%')
AND (CONCAT(project_prefix,project_number) LIKE '%$q%' OR project_name LIKE '%$q%' OR project_description LIKE '%$q%' OR user_name LIKE '%$q%')
AND project_completed_at $status_query
$project_permission_snippet
AND project_$archive_query