show correct errormessage when sql-prefix is wrong
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -31,7 +31,11 @@ function checkUsername($fieldname, $fielddata, $newfieldvalue, $allnewfieldvalue
|
|||||||
) {
|
) {
|
||||||
$returnvalue = array(FORMFIELDS_PLAUSIBILITY_CHECK_OK);
|
$returnvalue = array(FORMFIELDS_PLAUSIBILITY_CHECK_OK);
|
||||||
} else {
|
} else {
|
||||||
$returnvalue = array(FORMFIELDS_PLAUSIBILITY_CHECK_ERROR, 'accountprefixiswrong');
|
$errmsg = 'accountprefixiswrong';
|
||||||
|
if ($fieldname == 'customer_mysqlprefix') {
|
||||||
|
$errmsg = 'mysqlprefixiswrong';
|
||||||
|
}
|
||||||
|
$returnvalue = array(FORMFIELDS_PLAUSIBILITY_CHECK_ERROR, $errmsg);
|
||||||
}
|
}
|
||||||
return $returnvalue;
|
return $returnvalue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user