diff --git a/fields/types/relationship/RelationshipType.js b/fields/types/relationship/RelationshipType.js index cc18e94b4c..ab749a5b2f 100644 --- a/fields/types/relationship/RelationshipType.js +++ b/fields/types/relationship/RelationshipType.js @@ -222,10 +222,7 @@ relationship.prototype.updateItem = function (item, data, callback) { } var value = this.getValueFromData(data); - if (value === undefined) { - return process.nextTick(callback); - } - + // Are we handling a many relationship or just one value? if (this.many) { var arr = item.get(this.path); @@ -244,7 +241,7 @@ relationship.prototype.updateItem = function (item, data, callback) { if (value && value !== item.get(this.path)) { // If it's set and has changed, I do. item.set(this.path, value); - } else if (!value && item.get(this.path)) { + } else if ((value === undefined || !value) && item.get(this.path)) { // If it's not set and it was set previously, I need to clear. item.set(this.path, null); }