[Rt-commit] rt branch, 4.6/row-colors-by-condition, repushed
Craig Kaiser
craig at bestpractical.com
Mon Dec 31 14:25:31 EST 2018
The branch 4.6/row-colors-by-condition was deleted and repushed:
was f4af2044a862f75d2b80f31be5dbcdbe775cb8c0
now 2751f88ee1631700ab11ec04f63ec6fed6526cd7
1: 81390e43fa = 1: 81390e43fa Create ReplaceAttachments, ReplaceHeader and ReplaceContent Methods
2: 5bec6babae = 2: 5bec6babae Create rt-munge-attachments executable
3: 765817052e = 3: 765817052e Add tests for methods that munge the attachments table
4: f4af2044a8 ! 4: 2751f88ee1 Inital commit
@@ -45,7 +45,7 @@
+
+ my @classes;
+
-+ my %color_config = %{$preferences->{'HighlightRowColor'}};
++ my %color_config = $preferences->{'HighlightRowColor'} ? %{$preferences->{'HighlightRowColor'}} : ();
+
+ foreach my $condition (keys %color_config) {
+ my ($attr, $value) = $condition =~ /(.*)-(.*)/;
@@ -206,13 +206,12 @@
+% foreach my $color (@colors) {
+ <div>
+ <select name="Color-Arguement-<%$i%>" class="cascade-by-optgroup">
-+% if ( $defaults{$i}->{attribute} ) {
-+ <option value="<% $defaults{$i}->{attribute} %>"><% $defaults{$i}->{value} %></option>
-+% } else {
-+ <optgroup label="-"></optgroup>
-+% }
+ <optgroup label="Status">
-+% foreach my $status (@statuses) {
++% if ( $defaults{$i}->{attribute} ) {
++ <option selected="selected" value="<% $defaults{$i}->{attribute} %>"><% $defaults{$i}->{value} %></option>
++% }
++ <option value=""<% !$defaults{$i}->{value} && qq[ selected="selected"] |n %>><&|/l&>(no value)</&></option>
++% foreach my $status (@statuses) {
+ <option value="<% $status %>"><% $status %></option>
+% }
+ </optgroup>
More information about the rt-commit
mailing list