);
}
-sub default_weight { 20; }
+sub default_weight { 21; }
sub do_action {
my( $self, $object, $tagnum ) = @_;
- my %exists = map { $_->tagnum => $_->tagnum }
+ my %exists = map { $_->tagnum => $_->tagnum }
qsearch({
table => 'cust_tag',
hashref => { custnum => $object->custnum, },
my $cust_tag = new FS::cust_tag { 'tagnum' => $tagnum,
'custnum' => $object->custnum, };
my $error = $cust_tag->insert;
- if ( $error ) {
- return $error;
- }
+ die $error if $error;
}
}
'';