mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
Tidying/General quality of life updates
General quality of life updates: - Ticket contact edit: 'No one' should be logged when ticket isn't associated with any contact, rather than a blank space; also fix email content - Ticket portal/guest: Only show 'Assigned to' if someone is actually assigned - Ticket tasks: Don't allow adding/modifying tasks for tickets in a resolved state - Portal contacts: Properly align word 'Contacts' in a similar way all other page headings are aligned - Client PDF export/handover: Now opens in a new self-closing window
This commit is contained in:
@@ -129,7 +129,7 @@ if (isset($_POST['edit_client'])) {
|
||||
$sql = mysqli_query($mysqli, "SELECT category_name FROM categories WHERE category_type = 'Referral' AND category_archived_at IS NULL AND category_name = '$referral'");
|
||||
if(mysqli_num_rows($sql) == 0) {
|
||||
mysqli_query($mysqli, "INSERT INTO categories SET category_name = '$referral', category_type = 'Referral'");
|
||||
|
||||
|
||||
// Logging
|
||||
logAction("Category", "Create", "$session_name created referral category $referral");
|
||||
}
|
||||
@@ -383,7 +383,7 @@ if (isset($_POST['export_clients_csv'])) {
|
||||
|
||||
//output all remaining data on a file pointer
|
||||
fpassthru($f);
|
||||
|
||||
|
||||
logAction("Client", "Export", "$session_name exported $num_rows client(s) to a CSV file");
|
||||
|
||||
}
|
||||
@@ -1937,9 +1937,14 @@ if (isset($_POST['export_client_pdf'])) {
|
||||
//pdfMake.createPdf(docDefinition).download('<?php echo strtoAZaz09($client_name); ?>-IT_Documentation-<?php echo date('Y-m-d'); ?>');
|
||||
pdfMake.createPdf(docDefinition).download('<?php echo strtoAZaz09($client_name); ?>-IT_Documentation-<?php echo date('Y-m-d'); ?>');
|
||||
|
||||
setTimeout(function(){
|
||||
window.close();
|
||||
}, 10000);
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user