fix linkedWith filter
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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 || [];
|
||||
|
||||
Reference in New Issue
Block a user