apostrophe-schemas
Advanced tools
Comparing version 0.5.51 to 0.5.52
11
index.js
@@ -496,3 +496,3 @@ /* globals: apos */ | ||
} else { | ||
console.log(snippet.name + ': unknown type for attr attribute of relationship ' + name + ', ignoring'); | ||
console.error(snippet.name + ': unknown type for attr attribute of relationship ' + name + ', ignoring'); | ||
} | ||
@@ -688,3 +688,7 @@ }); | ||
_.each(_joins, function(join) { | ||
join._dotPath = arrays.join('.') + '.' + join.name; | ||
if (!arrays.length) { | ||
join._dotPath = join.name; | ||
} else { | ||
join._dotPath = arrays.join('.') + '.' + join.name; | ||
} | ||
// If we have more than one object we're not interested in joins | ||
@@ -725,4 +729,5 @@ // with the ifOnlyOne restriction right now. | ||
winner = true; | ||
return; | ||
} | ||
if (withJoinName.substr(0, dotPath + 1) === (dotPath + '.')) { | ||
if (withJoinName.substr(0, dotPath.length + 1) === (dotPath + '.')) { | ||
if (!withJoinsNext[dotPath]) { | ||
@@ -729,0 +734,0 @@ withJoinsNext[dotPath] = []; |
{ | ||
"version": "0.5.51", | ||
"version": "0.5.52", | ||
"name": "apostrophe-schemas", | ||
@@ -4,0 +4,0 @@ "description": "Schemas for easy editing of properties in Apostrophe objects", |
105574
1437