Skip to content

Commit d45c955

Browse files
Merge branch '5.0/txn-search-chart' into 5.0-trunk
2 parents 2ee360a + 5560234 commit d45c955

29 files changed

+2543
-1442
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This Dockerfile is for testing only.
22

3-
FROM bpssysadmin/rt-base-debian:RT-5.0.4-buster-20230703
3+
FROM bpssysadmin/rt-base-debian:RT-5.0.5-buster-20231215
44

55
ENV RT_TEST_PARALLEL 1
66
ENV RT_TEST_DEVEL 1

etc/cpanfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ requires 'DateTime', '>= 0.44';
2222
requires 'DateTime::Format::Natural', '>= 0.67';
2323
requires 'DateTime::Locale', '>= 0.40, != 1.00, != 1.01';
2424
requires 'DBI', '>= 1.37';
25-
requires 'DBIx::SearchBuilder', '>= 1.77';
25+
requires 'DBIx::SearchBuilder', '>= 1.80';
2626
requires 'Devel::GlobalDestruction';
2727
requires 'Devel::StackTrace', '>= 1.19, != 1.28, != 1.29';
2828
requires 'Digest::base';

lib/RT/CustomField.pm

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2381,6 +2381,26 @@ sub CleanupDefaultValues {
23812381
}
23822382
}
23832383

2384+
=head2 IsNumeric
2385+
2386+
Returns true if the custom field is supposed to be numeric, default is 0.
2387+
2388+
Right now you need to override this method to mark the chosen ones numeric.
2389+
2390+
=cut
2391+
2392+
sub IsNumeric { 0 }
2393+
2394+
=head2 NumericPrecision
2395+
2396+
Returns the precision if the custom field is numeric, default is C<undef>.
2397+
2398+
Right now you need to override this method to customize it.
2399+
2400+
=cut
2401+
2402+
sub NumericPrecision { undef }
2403+
23842404
=head2 id
23852405
23862406
Returns the current value of id.

lib/RT/Interface/Web/MenuBuilder.pm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,9 @@ sub BuildMainNav {
760760
elsif ( $class eq 'RT::Assets' ) {
761761
$current_search_menu->child( bulk => title => loc('Bulk Update'), path => "/Asset/Search/Bulk.html$args" );
762762
}
763+
elsif ( $class eq 'RT::Transactions' ) {
764+
$current_search_menu->child( chart => title => loc('Chart'), path => "/Search/Chart.html$args" );
765+
}
763766

764767
my $more = $current_search_menu->child( more => title => loc('Feeds') );
765768

0 commit comments

Comments
 (0)