diff --git a/www/lib/CoreLibs/Output/Form/Generate.php b/www/lib/CoreLibs/Output/Form/Generate.php index 68e7a1df..b2262c70 100644 --- a/www/lib/CoreLibs/Output/Form/Generate.php +++ b/www/lib/CoreLibs/Output/Form/Generate.php @@ -1371,7 +1371,7 @@ class Generate ) { $this->msg .= sprintf( $this->l->__('Please enter a valid (%s) input for the %s Field!
'), - $this->dba->getTableArray()[$key]['error_example'], + $this->dba->getTableArray()[$key]['error_example'] ?? '[MISSING]', $this->dba->getTableArray()[$key]['output_name'] ); } @@ -2602,7 +2602,7 @@ class Generate } } // add lost error ones - $this->log->error('P: ' . $data['prefix'] . ', ' + $this->log->error('Prefix: ' . $data['prefix'] . ', ' . Support::prAr($_POST['ERROR'][$data['prefix']] ?? [])); if ($this->error && !empty($_POST['ERROR'][$data['prefix']])) { $prfx = $data['prefix']; // short diff --git a/www/lib/CoreLibs/Output/Form/TableArrays/EditUsers.php b/www/lib/CoreLibs/Output/Form/TableArrays/EditUsers.php index c51dbd77..8761c2d4 100644 --- a/www/lib/CoreLibs/Output/Form/TableArrays/EditUsers.php +++ b/www/lib/CoreLibs/Output/Form/TableArrays/EditUsers.php @@ -182,6 +182,7 @@ class EditUsers implements Interface\TableArraysInterface 'type' => 'text', 'error_check' => 'unique|custom', 'error_regex' => "/^[A-Za-z0-9]+$/", + 'error_example' => "ABCdef123", 'emptynull' => 1,'min_edit_acl' => '100', 'min_show_acl' => '100', ],