Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Generate : [ErrorException] Undefined index: name #58

Open
tri-evendi opened this issue Oct 30, 2020 · 0 comments
Open

Cannot Generate : [ErrorException] Undefined index: name #58

tri-evendi opened this issue Oct 30, 2020 · 0 comments

Comments

@tri-evendi
Copy link

in this code on vendors/InfyOmLabs/generator-builder/controllers/GeneratorBuilderController.php ;
private function validateFields($fields)
{
$fieldsGroupBy = collect($fields)->groupBy(function ($item) {
return strtolower($item['name']);
});

    $duplicateFields = $fieldsGroupBy->filter(function (Collection $groups) {
        return $groups->count() > 1;
    });
    if (count($duplicateFields)) {
        throw new \Exception('Duplicate fields are not allowed');
    }

    return true;
}

return error responseText: "{↵ "message": "Undefined index: name".
How to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant