Hello,
I have a field with the following definition:
{{{field|Cultures|input type=tokens|values from concept=Production_types|delimiter=@}}}The concept has about 230 items.
When I try to complete the form, the autocomplete fails to return any useful result.
The reasons comes from line 435 of includes/PF_ValuesUtils.php:
$query = new SMWQuery( $desc ); > $query->setLimit( self::getMaxValuesToRetrieve( $substring ) ); $query_result = $store->getQueryResult( $query );
When $substring is not null, getMaxValuesToRetrieve returns 20 - the thing is that $substring is not yet part of the query, it's only after this query is performed that $substring is tested against the results. Therefore the first query returns only 20 items, which are tested against the $substring which then basically fails to be useful...
One fix could be to remove $substring from the call: self::getMaxValuesToRetrieve(), another fix could be to add $substring to the query instead of filtering later (don't know if it is possible).