This commit is contained in:
Aurelsicoko 2018-05-01 14:36:17 +02:00
parent 238c0c8141
commit a6fd8fc460

View File

@ -215,8 +215,8 @@ module.exports = {
attr.via = relation.key;
attr.dominant = relation.dominant;
if (relation.pluginValue) {
attr.plugin = relation.pluginValue;
if (_.trim(relation.pluginValue)) {
attr.plugin = _.trim(relation.pluginValue);
}
attrs[attribute.name] = attr;
@ -366,7 +366,10 @@ module.exports = {
attr.via = name;
attr.columnName = params.targetColumnName;
attr.plugin = source;
if (_.trim(source)) {
attr.plugin = _.trim(source);
}
modelJSON.attributes[params.key] = attr;