
Originally Posted by
yd29999
I've been looking but I can't seem to find the answer.
With 1.3.9c and FEC only, from the admin, customers, edit we get the error
* The 'Telephone Number' entry must have at least 0 characters
Now it doesn't matter what its set at in admin, configuration. I know others have had this issue but I just can't find it.
I would appreciate if someone could point me in the right direction.
What version of FEC? It uses the Minimum setting from configuration/minimum values. This is from FEC 181 create_account.php file
Code:
if (ACCOUNT_TELEPHONE == 'true') {
if (strlen($telephone) < ENTRY_TELEPHONE_MIN_LENGTH) {
$error = true;
$messageStack->add_session('login', ENTRY_TELEPHONE_NUMBER_ERROR);
}
}
and this is the code from customers.php which FEC doesn't use and it is what is used when editing a Customer from admin.
Code:
if (strlen($customers_telephone) < ENTRY_TELEPHONE_MIN_LENGTH) {
$error = true;
$entry_telephone_error = true;
} else {
$entry_telephone_error = false;
}
Both check the same settings for length! So, start there