},
status => sub {
my ($key, $value, $prefix) = @_;
- return () if $value eq 'all';
+ return () if $value ne 'orphaned';
return __PACKAGE__->is_not_used_filter($prefix);
},
+ all => sub {
+ my ($key, $value, $prefix) = @_;
+ return or => [ map { $prefix . $_ => $value } qw(projectnumber description customer.name) ]
+ }
);
our %project_id_column_prefixes = (
sub _sort_spec {
return (
- default => [ 'projectnumber', 1 ],
- columns => {
- SIMPLE => 'ALL',
- customer => 'customer.name',
+ default => [ 'projectnumber', 1 ],
+ columns => {
+ SIMPLE => 'ALL',
+ customer => 'customer.name',
+ project_type => 'project_type.description',
+ project_status => 'project_status.description',
+ customer_and_description => [ qw(customer.name project.description) ],
});
}