fix preset

This commit is contained in:
Yuri Kuznetsov
2014-07-23 09:56:42 +03:00
parent 0f2c050537
commit ea3c8f2d35
@@ -84,6 +84,13 @@ Espo.define('Views.Record.Search', 'View', function (Dep) {
createFilters: function (callback) {
var i = 0;
var count = Object.keys(this.advanced).length;
if (count == 0) {
if (typeof callback === 'function') {
callback();
}
}
for (var field in this.advanced) {
this.createFilter(field, this.advanced[field], function () {
i++;