mirror of
https://github.com/itflow-org/itflow
synced 2026-08-15 12:05:11 +00:00
Fix Export Missing coluns due to the select star sweep
This commit is contained in:
@@ -355,7 +355,7 @@ if (isExportRequest('export_users')) {
|
||||
|
||||
$sql = mysqli_query(
|
||||
$mysqli,
|
||||
"SELECT user_status FROM users
|
||||
"SELECT role_name, user_created_at, user_email, user_name, user_status FROM users
|
||||
LEFT JOIN user_roles ON user_role_id = role_id
|
||||
WHERE (user_name LIKE '%$q%' OR user_email LIKE '%$q%')
|
||||
AND user_type = 1
|
||||
|
||||
@@ -734,7 +734,8 @@ if (isExportRequest('export_quotes')) {
|
||||
|
||||
$sql = mysqli_query(
|
||||
$mysqli,
|
||||
"SELECT quote_number, quote_prefix FROM quotes
|
||||
"SELECT client_name, quote_amount, quote_date, quote_number, quote_prefix, quote_scope,
|
||||
quote_status FROM quotes
|
||||
LEFT JOIN clients ON quote_client_id = client_id
|
||||
LEFT JOIN categories ON quote_category_id = category_id
|
||||
WHERE (CONCAT(quote_prefix,quote_number) LIKE '%$q%' OR quote_scope LIKE '%$q%' OR category_name LIKE '%$q%' OR quote_status LIKE '%$q%' OR quote_amount LIKE '%$q%' OR client_name LIKE '%$q%')
|
||||
|
||||
@@ -671,7 +671,9 @@ if (isExportRequest('export_recurring_invoices')) {
|
||||
|
||||
$sql = mysqli_query(
|
||||
$mysqli,
|
||||
"SELECT recurring_invoice_frequency, recurring_invoice_number, recurring_invoice_prefix FROM recurring_invoices
|
||||
"SELECT client_name, recurring_invoice_amount, recurring_invoice_created_at,
|
||||
recurring_invoice_frequency, recurring_invoice_number, recurring_invoice_prefix,
|
||||
recurring_invoice_scope FROM recurring_invoices
|
||||
LEFT JOIN clients ON recurring_invoice_client_id = client_id
|
||||
LEFT JOIN categories ON recurring_invoice_category_id = category_id
|
||||
WHERE (CONCAT(recurring_invoice_prefix,recurring_invoice_number) LIKE '%$q%' OR recurring_invoice_frequency LIKE '%$q%' OR recurring_invoice_scope LIKE '%$q%' OR client_name LIKE '%$q%' OR category_name LIKE '%$q%')
|
||||
|
||||
@@ -292,7 +292,9 @@ if (isExportRequest('export_software')) {
|
||||
|
||||
$sql = mysqli_query(
|
||||
$mysqli,
|
||||
"SELECT software_id FROM software
|
||||
"SELECT software_description, software_expire, software_id, software_key, software_license_type,
|
||||
software_name, software_notes, software_purchase, software_seats, software_type,
|
||||
software_version FROM software
|
||||
LEFT JOIN clients ON client_id = software_client_id
|
||||
LEFT JOIN vendors ON vendor_id = software_vendor_id
|
||||
WHERE (software_name LIKE '%$q%' OR software_type LIKE '%$q%' OR software_key LIKE '%$q%' OR client_name LIKE '%$q%')
|
||||
|
||||
@@ -2906,7 +2906,9 @@ if (isExportRequest('export_tickets')) {
|
||||
// Get records from database - same shape as the tickets page list query
|
||||
$sql = mysqli_query(
|
||||
$mysqli,
|
||||
"SELECT category_name, ticket_billable, ticket_number, ticket_prefix, user_name FROM tickets
|
||||
"SELECT category_name, client_name, contact_name, ticket_billable, ticket_closed_at,
|
||||
ticket_created_at, ticket_number, ticket_prefix, ticket_priority, ticket_resolved_at,
|
||||
ticket_status_name, ticket_subject, user_name FROM tickets
|
||||
LEFT JOIN clients ON ticket_client_id = client_id
|
||||
LEFT JOIN contacts ON ticket_contact_id = contact_id
|
||||
LEFT JOIN users ON ticket_assigned_to = user_id
|
||||
|
||||
Reference in New Issue
Block a user