apostrophe-schemas
Advanced tools
Comparing version 0.5.12 to 0.5.13
{ | ||
"version": "0.5.12", | ||
"version": "0.5.13", | ||
"name": "apostrophe-schemas", | ||
@@ -4,0 +4,0 @@ "description": "Schemas for easy editing of properties in Apostrophe objects", |
@@ -178,3 +178,3 @@ function AposSchemas() { | ||
// The server will do the work of moving it to the idField as needed | ||
data[name] = $field.selective('get')[0]; | ||
data[name] = $field.selective('get', { incomplete: true })[0]; | ||
if (field.required && !data[name]) { | ||
@@ -192,3 +192,3 @@ return 'required'; | ||
// the relationshipsField and idsField separately for us if needed | ||
data[name] = $field.selective('get'); | ||
data[name] = $field.selective('get', { incomplete: true }); | ||
if (field.required && !data[name].length) { | ||
@@ -226,3 +226,3 @@ return 'required'; | ||
tags: function(data, name, $field, $el, field) { | ||
data[name] = $el.find('[data-name="' + name + '"]').selective('get'); | ||
data[name] = $el.find('[data-name="' + name + '"]').selective('get', { incomplete: true }); | ||
if (field.required && !data[name].length) { | ||
@@ -229,0 +229,0 @@ return 'required'; |
78617