[Rt-commit] rt branch, 4.2/cfv-autocomplete-limit, created. rt-4.2.5-111-g53b4dea

Alex Vandiver alexmv at bestpractical.com
Wed Jul 2 13:05:55 EDT 2014


The branch, 4.2/cfv-autocomplete-limit has been created
        at  53b4dea10e012445e7053240c6f5ca96f1d4bb2b (commit)

- Log -----------------------------------------------------------------
commit 53b4dea10e012445e7053240c6f5ca96f1d4bb2b
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Wed Jul 2 13:04:52 2014 -0400

    Limit the custom field values autocompleter, like the others
    
    Default to 10 options, as the other autocompleters do.
    
    Fixes: I#30190

diff --git a/share/html/Helpers/Autocomplete/CustomFieldValues b/share/html/Helpers/Autocomplete/CustomFieldValues
index 7d512ab..dd8d9cf 100644
--- a/share/html/Helpers/Autocomplete/CustomFieldValues
+++ b/share/html/Helpers/Autocomplete/CustomFieldValues
@@ -125,6 +125,7 @@ $values->Limit(
     SUBCLAUSE       => 'autocomplete',
     CASESENSITIVE   => 0,
 );
+$values->RowsPerPage( $ARGS{max} // 10 );
 
 my @suggestions;
 

-----------------------------------------------------------------------


More information about the rt-commit mailing list