TTXReports
fltrcode subroutine calls this...
TTXDesk::buildfilter($cfg,$query,$data)
... which we already know.
But the
fltrcode subroutine, if you notice, is what builds the filter (
$data)
before calling the
buildfilter subroutine. Also notice that there is a variable called
$nodr... (no date range?) before calling the
buildfilter subroutine.
if ($nodr || $nostatus) {
my @newflds;
foreach my $fld (split(/\|/, $saveflds)) {
next if $fld eq 'drange' && $nodr;
next if $fld eq 'status' && $nostatus;
push @newflds, $fld;
}
$cfg->set('fltrcols', join('|', @newflds));
}
if ($nodr) {
$query->param(-name => 'drange', -value => '');
}
Track down & figure out this
$nodr variable and you may have solved it. Perhaps a new option you can put in the Config file.