mirror of
https://github.com/strapi/strapi.git
synced 2025-09-23 07:22:51 +00:00
Fixes #886
This commit is contained in:
parent
238c0c8141
commit
a6fd8fc460
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user