mirror of
https://github.com/strapi/strapi.git
synced 2025-09-24 16:04:54 +00:00
Fixes #886
This commit is contained in:
parent
238c0c8141
commit
a6fd8fc460
@ -215,8 +215,8 @@ module.exports = {
|
|||||||
attr.via = relation.key;
|
attr.via = relation.key;
|
||||||
attr.dominant = relation.dominant;
|
attr.dominant = relation.dominant;
|
||||||
|
|
||||||
if (relation.pluginValue) {
|
if (_.trim(relation.pluginValue)) {
|
||||||
attr.plugin = relation.pluginValue;
|
attr.plugin = _.trim(relation.pluginValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
attrs[attribute.name] = attr;
|
attrs[attribute.name] = attr;
|
||||||
@ -366,7 +366,10 @@ module.exports = {
|
|||||||
|
|
||||||
attr.via = name;
|
attr.via = name;
|
||||||
attr.columnName = params.targetColumnName;
|
attr.columnName = params.targetColumnName;
|
||||||
attr.plugin = source;
|
|
||||||
|
if (_.trim(source)) {
|
||||||
|
attr.plugin = _.trim(source);
|
||||||
|
}
|
||||||
|
|
||||||
modelJSON.attributes[params.key] = attr;
|
modelJSON.attributes[params.key] = attr;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user