fix linkedWith filter

This commit is contained in:
yuri
2018-07-26 12:26:25 +03:00
parent 38d227a948
commit 10be208d8d
2 changed files with 6 additions and 3 deletions
@@ -1255,7 +1255,7 @@ class Base
$value = $item['value'];
if (is_null($value)) break;
if (is_null($value) || !$value && !is_array($value)) break;
$relationType = $seed->getRelationType($link);
+5 -2
View File
@@ -359,16 +359,19 @@ Espo.define('views/fields/link-multiple', 'views/fields/base', function (Dep) {
var type = this.$el.find('select.search-type').val();
if (type === 'anyOf') {
var values = this.ids || [];
var idList = this.ids || [];
var data = {
type: 'linkedWith',
value: this.ids || [],
value: idList,
nameHash: this.nameHash,
data: {
type: type
}
};
if (!idList.length) {
data.value = null;
}
return data;
} else if (type === 'noneOf') {
var values = this.ids || [];