Bug 17872: Fix small error in GetBudgetHierarchy and one of its calls
[koha.git] / C4 / Budgets.pm
index cf2939f..c68fbec 100644 (file)
@@ -511,7 +511,7 @@ sub GetBudgetHierarchy {
         }
     } else {
         if ($branchcode) {
-            push @where_strings," (budget_branchcode =? or budget_branchcode is NULL)";
+            push @where_strings," (budget_branchcode =? or budget_branchcode is NULL OR budget_branchcode='')";
             push @bind_params, $branchcode;
         }
     }