Skip to content

Commit

Permalink
fix configuration writing bug
Browse files Browse the repository at this point in the history
closes #50
  • Loading branch information
jberger committed Jan 7, 2016
1 parent c116cc7 commit ff5652f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -2,6 +2,7 @@ Revision history for Perl module Galileo

0.040
- Remove jQueryUI in favor of html5sortable
- Fix configuration writing bug in setup app

0.039 2015-09-28
- Simplify home path logic
Expand Down
4 changes: 2 additions & 2 deletions lib/Galileo/Command/setup.pm
Expand Up @@ -35,10 +35,10 @@ sub run {
$r->any( '/configure' => 'setup/configure' );
$r->any( '/store_config' => sub {
my $self = shift;
my @params = sort $self->param;
my $names = $self->req->params->names;

# map JSON keys to Perl data
my %params = map { $_ => scalar $self->param($_) } @params;
my %params = map { $_ => scalar $self->param($_) } @$names;
foreach my $key ( qw/extra_css extra_js extra_static_paths secrets db_options pagedown_extra_options/ ) {
$params{$key} = j($params{$key});
}
Expand Down

0 comments on commit ff5652f

Please sign in to comment.