Skip to content

Error when publish user in listing page dropdown #2703

Open
@petertsoisstuff

Description

Description

When trying to publish a user on the listing page, it returns an error.

The button in the dropdown also shows an incorrect state, when filtering Active the button label should show Unpublish, but is shows Publish instead.

The active value in the request payload is null, it should be a boolean value.
I think this is the reason why the request returns an error.

image

Steps to reproduce

Install fresh Laravel and Twill, login as Superadmin user, go to CMS Users, and on the listing page click the publish button in the three dots dropdown

Expected result

Publish or unpublish the specific user.

Actual result

Returns an error message "User was not published. Something wrong happened!"

Versions

Twill 3.4.1

Laravel 11.31

php8.3

sqlite

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions