Skip to content

Triple duplicate error messages thrown when a user without permissions tries to delete or other Action a shift from the Roster view #4744

Description

@pphatangare

Information about bug

When a user (such as an intern or employee without explicitly granted Delete permissions on the Shift Assignment DocType) attempts to delete or clear a shift entry directly from the Standalone Roster View (/hr/roster/), the page displays three identical error toast notifications simultaneously instead of a single, clean message.

Image

Module

HR

Version

"frappe": "16.18.3",
"erpnext": "16.19.1",
"payments": "0.0.1",
"hrms": "16.7.1",
"lms": "2.45.2",
"telephony": "0.0.1",
"helpdesk": "1.22.2"

Installation method

manual install

Relevant log output / Stack trace / Full Error Message.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions