MT#8547 - Remove "push on reference" syntax

changes/94/294/1
Kirill Solomko 11 years ago
parent 71eadae6ea
commit 85978fb823

@ -486,7 +486,7 @@ sub handles_list :Chained('base') :PathPart('handles') :CaptureArgs(0) {
for my $handle (@rows) {
$groups{ $handle->get_column('groupname') } = []
unless exists $groups{ $handle->get_column('groupname') };
push $groups{ $handle->get_column('groupname') }, $handle;
push @{ $groups{ $handle->get_column('groupname') } }, $handle;
}
$c->stash(sound_groups => \%groups);
$c->stash(handles_rs => $handles_rs);

@ -51,7 +51,7 @@ sub hal_from_item {
$resource{mappings} = [];
for my $mapping ($item->provisioning_voip_subscriber->voip_cc_mappings->all) {
push $resource{mappings}, {
push @{ $resource{mappings} }, {
auth_key => $mapping->auth_key,
};
}

@ -36,7 +36,7 @@ sub hal_from_item {
for my $mapping ($item->provisioning_voip_subscriber->voip_cf_mappings->all) {
my $dset = $mapping->destination_set ? $mapping->destination_set->name : undef;
my $tset = $mapping->time_set ? $mapping->time_set->name : undef;
push $resource->{$mapping->type}, {
push @{ $resource->{$mapping->type} }, {
destinationset => $dset,
timeset => $tset,
};

Loading…
Cancel
Save