-# if ($cgi->param('profile_id')) {
-# my $old_profile = ($label_template->get_attr('profile_id') ? C4::Labels::Profile->retrieve(profile_id => $label_template->get_attr('profile_id')) : undef);
-# my $new_profile = C4::Labels::Profile->retrieve(profile_id => $cgi->param('profile_id'));
-# if ($label_template->get_attr('template_id') != $new_profile->get_attr('template_id')) {
-# $new_profile->set_attr(template_id => $label_template->get_attr('template_id'));
-# $new_profile->save();
-# if ($old_profile) {
-# $old_profile->set_attr(template_id => 0);
-# $old_profile->save();
-# }
-# }
-# }