Skip to content

Roles are not deleted in the correct way, in the user zone. #739

@rafa31gz

Description

@rafa31gz

When adding roles to a user and want to delete them with the delete button, I noticed that this does not delete the row in the HTML, therefore sends an empty parameter and the server detects it as an SQL error.

General error: 1366 Incorrect integer value: '' for column 'role_id' at row 1 (SQL: insert into role_users (created_at, role_id, updated_at, user_id) values (2017-06-15 21:45:42, , 2017-06-15 21:45:42, 3))
app/sprinkles/admin/src/Controller/UserController.php(1147): Illuminate\Database\Eloquent\Relations\BelongsToMany->sync(Array)

Metadata

Metadata

Labels

confirmed bugSomething isn't workingfrontendThe frontend interface

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions