Skip to content

Commit

Permalink
Merge pull request #25 from backdrop-contrib/robertgarrigos-patch-1
Browse files Browse the repository at this point in the history
fixes #24 "_element_validate_integer_positive" not found or invalid f…
  • Loading branch information
robertgarrigos authored Aug 15, 2024
2 parents 1274403 + 95129c3 commit a321da9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions references_dialog.info
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ backdrop = 1.x
type = module
dependencies[] = field
dependencies[]= entity_plus
dependencies[]= references
4 changes: 2 additions & 2 deletions references_dialog.module
Original file line number Diff line number Diff line change
Expand Up @@ -757,10 +757,10 @@ function references_dialog_field_widget_settings_form($field, $instance) {
'#description' => t('Select the method used to collect autocomplete suggestions. Note that <em>Contains</em> can cause performance issues on sites with thousands of nodes.'),
);
$form['size'] = array(
'#type' => 'textfield',
'#type' => 'number',
'#title' => t('Size of textfield'),
'#default_value' => $settings['size'],
'#element_validate' => array('_element_validate_integer_positive'),
'#min' => 0,
'#required' => TRUE,
);
}
Expand Down

0 comments on commit a321da9

Please sign in to comment.