diff --git a/plugins/selection/EntityReference_SelectionHandler_Views.class.php b/plugins/selection/EntityReference_SelectionHandler_Views.class.php index 31313f9..a318be9 100644 --- a/plugins/selection/EntityReference_SelectionHandler_Views.class.php +++ b/plugins/selection/EntityReference_SelectionHandler_Views.class.php @@ -179,8 +179,8 @@ class EntityReference_SelectionHandler_Views implements EntityReference_Selectio // Error if there are no entities available for a required field. form_error($element, t('No items found for %label', array('%label' => $element['#title']))); } - elseif (count($entities) > 10) { - // Error if there are more than 10 matching entities. + elseif (count($entities) > 5) { + // Error if there are more than 5 matching entities. form_error($element, t('Too many items found for %label. Specify the one you want by appending the id in parentheses, like "@value (@id)"', array( '%label' => $element['#title'], '@value' => $input,