Skip to content

Commit 91a4537

Browse files
committed
Drop obsolete IE detector as IE is not supported any more
1 parent eb7c52a commit 91a4537

File tree

4 files changed

+4
-21
lines changed

4 files changed

+4
-21
lines changed

lib/RT/Interface/Web.pm

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2223,11 +2223,6 @@ sub RequestENV {
22232223
return $value;
22242224
}
22252225

2226-
sub ClientIsIE {
2227-
# IE 11.0 dropped "MSIE", so we can't use that alone
2228-
return RequestENV('HTTP_USER_AGENT') =~ m{MSIE|Trident/} ? 1 : 0;
2229-
}
2230-
22312226
=head2 ExpandShortenerCode $ARGS
22322227
22332228
Expand shortener code and put expanded ones into C<$ARGS>.

lib/RT/Interface/Web/MenuBuilder.pm

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1815,12 +1815,10 @@ sub _BuildAdminPageMenu {
18151815
RT::Interface::Web::EscapeURI(\$Name_uri);
18161816
RT::Interface::Web::EscapeURI(\$Type_uri);
18171817

1818-
unless ( RT::Interface::Web->ClientIsIE ) {
1819-
$page->child(
1820-
basics => title => loc('Modify'),
1821-
path => "/Admin/Lifecycles/Modify.html?Type=" . $Type_uri . ";Name=" . $Name_uri,
1822-
);
1823-
}
1818+
$page->child(
1819+
basics => title => loc('Modify'),
1820+
path => "/Admin/Lifecycles/Modify.html?Type=" . $Type_uri . ";Name=" . $Name_uri,
1821+
);
18241822
$page->child( actions => title => loc('Actions'), path => "/Admin/Lifecycles/Actions.html?Type=" . $Type_uri . ";Name=" . $Name_uri );
18251823
$page->child( rights => title => loc('Rights'), path => "/Admin/Lifecycles/Rights.html?Type=" . $Type_uri . ";Name=" . $Name_uri );
18261824
$page->child( mappings => title => loc('Mappings'), path => "/Admin/Lifecycles/Mappings.html?Type=" . $Type_uri . ";Name=" . $Name_uri );

share/html/Admin/Lifecycles/Advanced.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,6 @@
125125

126126
$Config ||= JSON::to_json(RT->Config->Get('Lifecycles')->{$LifecycleObj->Name}, { canonical => 1, pretty => 1 });
127127

128-
if ( $ARGS{RedirectedFromModify} && RT::Interface::Web->ClientIsIE() ) {
129-
push @results, loc("The graphical lifecycle builder is not currently supported on IE 11. You can update the lifecycle configuration using the Advanced tab or access the lifecycle editor in a supported browser.");
130-
}
131-
132128
if ( !defined $Maps && ( my $all_maps = RT->Config->Get('Lifecycles')->{__maps__} ) ) {
133129
for my $item ( grep {/^\Q$Name\E -> | -> \Q$Name\E$/} keys %$all_maps ) {
134130
$Maps->{$item} = $all_maps->{$item};

share/html/Admin/Lifecycles/Modify.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,6 @@
7070
</form>
7171
<%INIT>
7272

73-
if ( RT::Interface::Web->ClientIsIE() ) {
74-
RT::Interface::Web::Redirect( RT->Config->Get('WebURL')
75-
. "Admin/Lifecycles/Advanced.html?"
76-
. $m->comp( '/Elements/QueryString', %ARGS, RedirectedFromModify => 1 ) );
77-
}
78-
7973
my ($title, @results);
8074
my $LifecycleObj = RT::Lifecycle->new();
8175
$LifecycleObj->Load(Name => $Name, Type => $Type);

0 commit comments

Comments
 (0)