Skip to content
Permalink
Browse files

Audit Export Hide Views

This commit ensures that we check the 'Show View Audits' configuration before exporting Ticket audits so we can determine if we want to see the Ticket view events in the export or not.
  • Loading branch information...
aydreeihn committed Aug 8, 2019
1 parent 30eeaf9 commit 2c350f3b7cf5d3a0acfd4f713f9a0468de11be6b
Showing with 3 additions and 3 deletions.
  1. +3 −3 scp/audits.php
@@ -25,10 +25,10 @@
if ($_REQUEST['type'] == $abbrev)
$name = AuditEntry::getObjectName($info[0]);
}
$filename = sprintf('%s-audits-%s.csv',
$name, strftime('%Y%m%d'));
$show = AuditEntry::$show_view_audits;
$filename = sprintf('%s-audits-%s.csv', $name, strftime('%Y%m%d'));
if (!Export::audits('audit', $filename))
if (!Export::audits('audit', $filename, '', '', 'csv', $show))
$errors['err'] = __('Unable to dump query results.')
.' '.__('Internal error occurred');
}

0 comments on commit 2c350f3

Please sign in to comment.
You can’t perform that action at this time.