Fix for Bug 3926 (suggestion edit form combines data)
[koha.git] / admin / smart-rules.pl
index c3300f3..d1e5a87 100755 (executable)
@@ -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;