Merge pull request #1742 from treygreer/master

fixed simple config load bug
issue1834
Alessandro Ranellucci 2014-02-07 02:12:42 +01:00
commit bba69ed22f
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ sub load_config {
my $self = shift;
my ($config) = @_;
foreach my $opt_key (grep $self->{config}->has($_), keys %$config) {
foreach my $opt_key (grep $self->{config}->has($_), @{$config->get_keys}) {
my $value = $config->get($opt_key);
$self->{config}->set($opt_key, $value);
$_->set_value($opt_key, $value) for @{$self->{optgroups}};