diff --git a/modules/core/src/com/haulmont/cuba/core/app/FoldersServiceBean.java b/modules/core/src/com/haulmont/cuba/core/app/FoldersServiceBean.java index aa7b3747b2..03572f9ce2 100644 --- a/modules/core/src/com/haulmont/cuba/core/app/FoldersServiceBean.java +++ b/modules/core/src/com/haulmont/cuba/core/app/FoldersServiceBean.java @@ -155,6 +155,8 @@ public class FoldersServiceBean implements FoldersService { protected void loadFolderQuantity(Binding binding, AppFolder folder) { try { if (!StringUtils.isBlank(folder.getQuantityScript())) { + binding.setVariable("persistence", persistence); + binding.setVariable("metadata", metadata); String variable = "style"; binding.setVariable("folder", folder); binding.setVariable(variable, null);