[Rt-commit] rt branch, 4.6/custom-date-ranges-config-in-web-ui, repushed
Michel Rodriguez
michel at bestpractical.com
Tue Feb 4 14:00:00 EST 2020
The branch 4.6/custom-date-ranges-config-in-web-ui was deleted and repushed:
was 54cc38f69e440ff0fa60342dd905658db5dbcff0
now cb661b4f789d4ba8e8f243423c5613c4fa0a7678
1: 699237332b = 1: 699237332b Move CustomDateRanges to the Features section of the web config editor.
2: ce11d655a4 ! 2: 20a5d34e03 First stab at displaying both types of CustomDateRanges in the config tab.
@@ -23,13 +23,14 @@
my $raw_value = RT->Config->Get( $name );
+if ( $meta->{Dual} ) {
-+ warn "in Option; Dual is true, name: $name";
+ my $attribute = RT->System->FirstAttribute( $name );
+ if ( $attribute ) {
++ # this actually does not work for CustomDateRanges when they have all been deleted
++ # since the top level ('RT::Ticket') may still exists, even though it's empty
+ if ( my $value_in_attribute = $attribute->Content ) {
-+ $raw_value = { 'In Config Files' => $raw_value,
-+ 'In Data Base' => $value_in_attribute,
-+ }
++ $raw_value = { 'In Config Files' => $raw_value,
++ 'In Data Base' => $value_in_attribute,
++ };
+ }
+ }
+}
-: ------- > 3: 5f7cad7750 Display Dual values in Config display page
3: 54cc38f69e = 4: cb661b4f78 Hide the [Custom Data Ranges] menu entry for users who don't have the rights.
More information about the rt-commit
mailing list