Skip to content
Snippets Groups Projects
Commit d55a508b authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #40397 by DriesK: fixed problem with contact module.

parent 7d977336
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -289,7 +289,7 @@ function contact_mail_page_validate($form_id, &$form) {
$result = db_query('SELECT cid FROM {contact}');
if (db_num_rows($result) == 1) {
$category = db_fetch_object($result);
$form_values['cid'] = $category->category;
$form_values['cid'] = $category->cid;
}
else {
form_set_error('category', t('You must select a valid category.'));
......
......@@ -289,7 +289,7 @@ function contact_mail_page_validate($form_id, &$form) {
$result = db_query('SELECT cid FROM {contact}');
if (db_num_rows($result) == 1) {
$category = db_fetch_object($result);
$form_values['cid'] = $category->category;
$form_values['cid'] = $category->cid;
}
else {
form_set_error('category', t('You must select a valid category.'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment