fixed to category viewing and recurring transaction data

This commit is contained in:
Finn 2018-03-20 12:19:04 +00:00
parent bcb0cd642c
commit 2cf0678126
3 changed files with 8 additions and 9 deletions

View file

@ -249,16 +249,15 @@ sub post_category {
# push @{ $categories->{ ids } }, $_->get_column('id');
# push @{ $categories->{ names } }, $_->get_column('name');
# }
my @category_list = (
map {{
id => $_->id,
name => $_->name,
}} $category_rs->all
my %category_list = (
map {
$_->id => $_->name,
} $category_rs->all
);
return $self->render( json => {
success => Mojo::JSON->true,
categories => \@category_list,
categories => \%category_list,
});
}