Commit d0d7db09 authored by generalredneck's avatar generalredneck

Issue #2669814 by jojonaloha, duckydan: Possible module incompatibility with UUID and one other

parent 69c1b5ba
......@@ -346,7 +346,8 @@ function views_natural_sort_get_supported_entity_properties() {
continue;
}
$schema = drupal_get_schema($entity_info[$entity_type]['base table']);
if ($schema['fields'][$property_info['schema field']]['type'] != 'varchar') {
$schema_field = $property_info['schema field'];
if (empty($schema['fields'][$schema_field]) || $schema['fields'][$schema_field]['type'] != 'varchar') {
continue;
}
$supported_properties[$entity_type][$property] = array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment