Lines 146-152
sub delete {
Link Here
|
146 |
push @query_params, $opts{'template_id'}, $opts{'creator'}; |
146 |
push @query_params, $opts{'template_id'}, $opts{'creator'}; |
147 |
} |
147 |
} |
148 |
if (scalar(@query_params) < 2) { # If there is no template id or creator type then we cannot delete it |
148 |
if (scalar(@query_params) < 2) { # If there is no template id or creator type then we cannot delete it |
149 |
warn sprintf('%s : Cannot delete template as the template id is invalid or non-existent.', $call_type) if !$query_params[0]; |
149 |
warn sprintf('%s : Cannot delete template as the template ID is invalid or non-existent.', $call_type) if !$query_params[0]; |
150 |
warn sprintf('%s : Cannot delete template as the creator type is invalid or non-existent.', $call_type) if !$query_params[1]; |
150 |
warn sprintf('%s : Cannot delete template as the creator type is invalid or non-existent.', $call_type) if !$query_params[1]; |
151 |
return -1; |
151 |
return -1; |
152 |
} |
152 |
} |