Skip to content

Commit 0e786f6

Browse files
author
Christian Blanquera
committed
validation singular field bug fix
1 parent 4391acb commit 0e786f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Fieldset/Validator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ class Validator
3030
*/
3131
public static function getCreateErrors(array $data, array $errors = [])
3232
{
33-
if (!isset($data['Singular']) || empty($data['Singular'])) {
34-
$errors['Singular'] = 'Singular is required';
33+
if (!isset($data['singular']) || empty($data['singular'])) {
34+
$errors['singular'] = 'Singular is required';
3535
}
3636

3737
if (!isset($data['plural']) || empty($data['plural'])) {

0 commit comments

Comments
 (0)