added default
This commit is contained in:
parent
8d4c9703a0
commit
adb19e84f7
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ sub post_customer {
|
|||
}
|
||||
|
||||
my @cat_lists = map { { category => $_, value => $cat_total_list{$_},
|
||||
icon => $c->schema->resultset('Category')->as_hash_name_icon->{$_} } } sort keys %cat_total_list;
|
||||
icon => $c->schema->resultset('Category')->as_hash_name_icon->{$_} || 'question'} } sort keys %cat_total_list;
|
||||
$data->{cat_list} = [ sort { $b->{value} <=> $a->{value} } @cat_lists ];
|
||||
|
||||
my $purchase_no_essential_rs = $purchase_rs->search({
|
||||
|
|
Reference in a new issue