Add a logged warning for trying to fetch a non-existant tab by key.
This commit is contained in:
parent
d975109e1f
commit
02635bf3c9
1 changed files with 1 additions and 0 deletions
|
|
@ -134,6 +134,7 @@ The name of the tab to return the form object for.
|
||||||
sub getTab {
|
sub getTab {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $key = shift;
|
my $key = shift;
|
||||||
|
$self->session->log->warn('Trying to fetch non-existant tab: '.$key) if !exists $self->{_tab}{$key};
|
||||||
return $self->{_tab}{$key}{form};
|
return $self->{_tab}{$key}{form};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue