Hi,
I tried to change the company field as required. I changed the code in includes/modules/pages/create_account/header_php.php from:
if (ACCOUNT_COMPANY == 'true') $company = zen_db_prepare_input($_POST['company']);
TO:
if (ACCOUNT_COMPANY == 'true') {
$company = zen_db_prepare_input($_POST['company']);
if (strlen($company) < 3) {
$error = true;
$messageStack->add('create_account', ENTRY_COMPANY_NAME_ERROR);
}
}
However, people still can submit the form without filling the company field. I also changed the minimum value in admin section from 0 to 3.
Can anybody help me to point out why this doesn't work? Am I missing something?
Thanks a lot!!



