Bug fix in edit user control array for custom error example data missing
This commit is contained in:
@@ -1371,7 +1371,7 @@ class Generate
|
|||||||
) {
|
) {
|
||||||
$this->msg .= sprintf(
|
$this->msg .= sprintf(
|
||||||
$this->l->__('Please enter a valid (%s) input for the <b>%s</b> Field!<br>'),
|
$this->l->__('Please enter a valid (%s) input for the <b>%s</b> Field!<br>'),
|
||||||
$this->dba->getTableArray()[$key]['error_example'],
|
$this->dba->getTableArray()[$key]['error_example'] ?? '[MISSING]',
|
||||||
$this->dba->getTableArray()[$key]['output_name']
|
$this->dba->getTableArray()[$key]['output_name']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -2602,7 +2602,7 @@ class Generate
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// add lost error ones
|
// add lost error ones
|
||||||
$this->log->error('P: ' . $data['prefix'] . ', '
|
$this->log->error('Prefix: ' . $data['prefix'] . ', '
|
||||||
. Support::prAr($_POST['ERROR'][$data['prefix']] ?? []));
|
. Support::prAr($_POST['ERROR'][$data['prefix']] ?? []));
|
||||||
if ($this->error && !empty($_POST['ERROR'][$data['prefix']])) {
|
if ($this->error && !empty($_POST['ERROR'][$data['prefix']])) {
|
||||||
$prfx = $data['prefix']; // short
|
$prfx = $data['prefix']; // short
|
||||||
|
|||||||
@@ -182,6 +182,7 @@ class EditUsers implements Interface\TableArraysInterface
|
|||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'error_check' => 'unique|custom',
|
'error_check' => 'unique|custom',
|
||||||
'error_regex' => "/^[A-Za-z0-9]+$/",
|
'error_regex' => "/^[A-Za-z0-9]+$/",
|
||||||
|
'error_example' => "ABCdef123",
|
||||||
'emptynull' => 1,'min_edit_acl' => '100',
|
'emptynull' => 1,'min_edit_acl' => '100',
|
||||||
'min_show_acl' => '100',
|
'min_show_acl' => '100',
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user