Select menu tab with URL parameter (#348)
This commit is contained in:
parent
897fcc00da
commit
408682847d
|
@ -41,7 +41,14 @@ sub menuInit {
|
|||
$self->{menuError} ||= $self->{error};
|
||||
|
||||
# Tab to display
|
||||
$self->{menuDisplayTab} = "appslist";
|
||||
# Get the tab URL parameter
|
||||
$self->{menuDisplayTab} = $self->param("tab") || "none";
|
||||
|
||||
# Default to appslist if invalid tab URL parameter
|
||||
$self->{menuDisplayTab} = "appslist"
|
||||
unless ( $self->{menuDisplayTab} =~ /^(password|logout)$/ );
|
||||
|
||||
# Force password tab in case of password error
|
||||
$self->{menuDisplayTab} = "password"
|
||||
if (
|
||||
(
|
||||
|
|
Loading…
Reference in New Issue
Block a user