Bug 16013: Make classification sources deletable

Because of a wrong variable scope, the classification sources are not
deletable.

Test plan:
Create a classification sources (admin/classsources.pl)
Try to delete it
Without this patch, the classification source won't be deleted
With this patch, it will work!

Signed-off-by: Srdjan <srdjan@catalyst.net.nz>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
(cherry picked from commit f6463317db)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit 145e4f7a1e)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
Jonathan Druart 2016-03-09 11:28:04 +00:00 committed by Frédéric Demians
parent bcbe443af4
commit 9bfd70aec6
1 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ if ($op eq "add_source") {
$rule_code);
$display_lists = 1;
} elsif ($op eq "delete_source") {
delete_class_source_form($template);
delete_class_source_form($template, $source_code);
} elsif ($op eq "delete_source_confirmed") {
delete_class_source($template, $source_code);
$display_lists = 1;
@ -146,7 +146,7 @@ sub edit_class_source {
sub delete_class_source_form {
my ($template) = @_;
my ($template, $source_code) = @_;
$template->param(
delete_class_source_form => 1,
confirm_op => "delete_source_confirmed",