TT#2393 Fix typo in sset deletion

Change-Id: If646446f3cd6998687146ada25cd5694c108c685
changes/36/10036/3
Irina Peshinskaya 9 years ago
parent 834de7adef
commit 69923f301a

@ -198,11 +198,11 @@ sub update_item {
} else { } else {
$mapping_count && $mapping->update({source_set_id => undef}); $mapping_count && $mapping->update({source_set_id => undef});
if ($sset->name =~ m/^quickset_/) { if ($sset->name =~ m/^quickset_/) {
$tset->delete; # delete sset $sset->delete; # delete sset
} }
} }
} else { } else {
if ((defined $resource->{$type}{times}) && @{ $resource->{$type}{times}}) { if ((defined $resource->{$type}{sources}) && @{ $resource->{$type}{sources}}) {
$sset = $mapping->create_related('source_set', {'name' => "quickset_$type", subscriber_id => $prov_subscriber_id,} ); $sset = $mapping->create_related('source_set', {'name' => "quickset_$type", subscriber_id => $prov_subscriber_id,} );
$mapping->update({source_set_id => $sset->id}); $mapping->update({source_set_id => $sset->id});
} }

Loading…
Cancel
Save