From 2b8d967812822d1aec85faa458d13f0172281139 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 3 Mar 2008 23:12:43 +0000 Subject: [PATCH] merge in rt 3.6.6. *gulp*! --- rt/etc/RT_Config.pm.in | 7 +++++++ rt/html/Elements/CollectionAsTable/Row | 5 ++++- rt/html/Elements/Header | 2 +- rt/html/Elements/PageLayout | 3 +++ rt/html/Elements/Tabs | 4 +++- rt/html/Ticket/Elements/ShowTransactionAttachments | 2 +- rt/html/Widgets/TitleBoxStart | 2 -- rt/sbin/rt-setup-database.in | 4 ++-- 8 files changed, 21 insertions(+), 8 deletions(-) diff --git a/rt/etc/RT_Config.pm.in b/rt/etc/RT_Config.pm.in index 0657d3d5e..cf089fb8d 100644 --- a/rt/etc/RT_Config.pm.in +++ b/rt/etc/RT_Config.pm.in @@ -505,6 +505,13 @@ Set($SuppressInlineTextFiles, undef); Set($DontSearchFileAttachments, undef); +# The GD module (which RT uses for graphs) uses a builtin font that doesn't +# have full Unicode support. You can use a particular TrueType font by setting +# $ChartFont to the absolute path of that font. Your GD library must have +# support for TrueType fonts to use this option. + +Set($ChartFont, undef); + # }}} diff --git a/rt/html/Elements/CollectionAsTable/Row b/rt/html/Elements/CollectionAsTable/Row index 64ecef41c..d8492265e 100644 --- a/rt/html/Elements/CollectionAsTable/Row +++ b/rt/html/Elements/CollectionAsTable/Row @@ -55,6 +55,7 @@ $Warning => undef <%PERL> +use HTML::Entities; $m->out('' ); my $item; foreach my $column (@Format) { @@ -71,7 +72,9 @@ foreach my $column (@Format) { next; } $item++; - $m->out('{class} + ? encode_entities($column->{class}, q{'"&<>}) : 'collection-as-table'; + $m->out(qq{out( 'align="' . $column->{align} . '"' ) if ( $column->{align} ); $m->out( 'style="' . $column->{style} . '"' ) if ( $column->{style} ); $m->out('>'); diff --git a/rt/html/Elements/Header b/rt/html/Elements/Header index 4ac38cdf4..bf6fa46fa 100644 --- a/rt/html/Elements/Header +++ b/rt/html/Elements/Header @@ -58,7 +58,7 @@ % } - + % if ( $RSSAutoDiscovery ) { diff --git a/rt/html/Elements/PageLayout b/rt/html/Elements/PageLayout index 1aa149013..b9fd31f71 100644 --- a/rt/html/Elements/PageLayout +++ b/rt/html/Elements/PageLayout @@ -75,9 +75,11 @@ +% if ( $show_menu ) { +% } +% } <%ARGS> $Ticket => undef $Transaction => undef diff --git a/rt/html/Widgets/TitleBoxStart b/rt/html/Widgets/TitleBoxStart index 1320b8f66..1d8548d00 100755 --- a/rt/html/Widgets/TitleBoxStart +++ b/rt/html/Widgets/TitleBoxStart @@ -64,8 +64,6 @@ $title => '' $title_class => '' $titleright_href => undef $titleright => undef -$contentbg => "#d4d4d4" -$color => "#336699" $id => '' $hideable => 1 diff --git a/rt/sbin/rt-setup-database.in b/rt/sbin/rt-setup-database.in index 98d965c31..cf607e286 100644 --- a/rt/sbin/rt-setup-database.in +++ b/rt/sbin/rt-setup-database.in @@ -586,7 +586,7 @@ sub insert_data { my ($return,$msg) = $new_entry->Create(%$item); unless ($return) { print "(Error: $msg)\n"; - exit; + next; } print $return. "."; } @@ -602,7 +602,7 @@ sub insert_data { my ($return,$msg) = $new_entry->Create(%$item); unless ($return) { print "(Error: $msg)\n"; - exit; + next; } print $return. "."; } -- 2.11.0