From 0f015abd99a489feb51859bc1c2254b1c0cfa3ed Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Mon, 14 Sep 2009 14:47:47 +0200 Subject: [PATCH] smart-rules : clonerules enhancement Cloning rules should be available as soon as there is one rule --- admin/smart-rules.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/smart-rules.pl b/admin/smart-rules.pl index c3300f369b..d1e5a87643 100755 --- a/admin/smart-rules.pl +++ b/admin/smart-rules.pl @@ -480,7 +480,7 @@ $template->param(categoryloop => \@category_loop, branchloop => \@branchloop, humanbranch => ($branch ne '*' ? $branches->{$branch}->{branchname} : ''), branch => $branch, - definedbranch => $branch eq '*' + definedbranch => scalar(@sorted_row_loop)>0 ); output_html_with_http_headers $input, $cookie, $template->output; -- 2.39.5