Skip to content

Commit

Permalink
#284: better check for adding of autocomplete to textfields
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Walker committed Aug 15, 2016
1 parent 1eaf867 commit ec7d8b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/fapi.inc
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function kalatheme_textfield($variables) {
$output = '<input' . drupal_attributes($element['#attributes']) . ' />';

$extra = '';
if (isset($element['#autocomplete_path']) && drupal_valid_path($element['#autocomplete_path'])) {
if (!empty($element['#autocomplete_path']) && drupal_valid_path($element['#autocomplete_path'])) {
drupal_add_library('system', 'drupal.autocomplete');
$element ['#attributes']['class'][] = 'form-autocomplete';

Expand Down

0 comments on commit ec7d8b3

Please sign in to comment.