|
@@ -962,14 +962,15 @@ function tripal_field_is_empty($item, $field) {
|
|
|
return TRUE;
|
|
|
}
|
|
|
|
|
|
- // If there is no value field then the field is empty.
|
|
|
- if (!array_key_exists('value', $item)) {
|
|
|
+ // If the field is a tripal field storage API field and there
|
|
|
+ // is no value field then the field is empty.
|
|
|
+ if (array_key_exists('tripal_storage_api', $field['storage']['settings']) and !array_key_exists('value', $item)) {
|
|
|
return TRUE;
|
|
|
}
|
|
|
|
|
|
// If there is a value field but there's nothing in it, the the field is
|
|
|
// empty.
|
|
|
- if (array_key_exists('value', $item) and empty($item['value'])){
|
|
|
+ if (array_key_exists('value', $item) and empty($item['value'])) {
|
|
|
return TRUE;
|
|
|
}
|
|
|
|