2
0
forked from Wavyzz/dolibarr

Fix : extrafields attrname regex

This commit is contained in:
lmarcouiller
2022-05-04 14:37:54 +02:00
parent 6813bfb1e8
commit 0fd2e91ccc
2 changed files with 2 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ if ($action == 'add') {
if (!$error) {
// attrname must be alphabetical and lower case only
if (GETPOSTISSET("attrname") && preg_match("/^[a-z0-9-_]+$/", GETPOST('attrname', 'aZ09')) && !is_numeric(GETPOST('attrname', 'aZ09'))) {
if (GETPOSTISSET("attrname") && preg_match("/^[a-z0-9_]+$/", GETPOST('attrname', 'aZ09')) && !is_numeric(GETPOST('attrname', 'aZ09'))) {
// Construct array for parameter (value of select list)
$default_value = GETPOST('default_value', 'alpha');
$parameters = $param;