size to maxlength

This commit is contained in:
Nathan Coad
2019-09-17 13:49:52 +10:00
parent 37a1d6867d
commit 20a2984f49

View File

@@ -72,7 +72,7 @@ function _booking_ecclesia_name_autocomplete($string) {
$matches = array(); $matches = array();
$sanitised_string = preg_replace("/[^a-zA-Z0-9\s\.']/", '', $string); $sanitised_string = preg_replace("/[^a-zA-Z0-9\s\.']/", '', $string);
$sanitised_string .= "%"; $sanitised_string .= "%";
watchdog('booking_debug', "<pre>Autocomplete checking for ecclesia matching:\n@info</pre>", array('@info' => print_r($sanitised_string, true))); //watchdog('booking_debug', "<pre>Autocomplete checking for ecclesia matching:\n@info</pre>", array('@info' => print_r($sanitised_string, true)));
$query = db_select('booking_person', 'p') $query = db_select('booking_person', 'p')
->fields('p', array('booking_ecclesia')) ->fields('p', array('booking_ecclesia'))
@@ -319,7 +319,7 @@ function booking_form($node, &$form_state, $inserting = FALSE)
$form['your-details']['booking_ecclesia'] = array ( $form['your-details']['booking_ecclesia'] = array (
'#type' => 'textfield', '#type' => 'textfield',
'#title' => t('Ecclesia'), '#title' => t('Ecclesia'),
'#size' => 100, '#maxlength' => 100,
'#autocomplete_path' => 'booking/ecclesia/autocomplete', '#autocomplete_path' => 'booking/ecclesia/autocomplete',
'#value' => !empty($data->booking_ecclesia) ? $data->booking_ecclesia : '', '#value' => !empty($data->booking_ecclesia) ? $data->booking_ecclesia : '',
); );