Skip to content

Many of "Roles" hooks don't work #360

@adrianbj

Description

@adrianbj

Short description of the issue

Most of the Roles hooks don't work

These work
Roles::deleteReady
Roles::deleted
Roles::saveReady
Roles::saved

but these don't work
Roles::add
Roles::delete
Roles::save
Roles::added

Expected behavior

They should work :)

Actual behavior

They don't work :) :)

Steps to reproduce the issue

Add this to ready.php and then create a new role.

$this->addHookBefore("Roles::added", function($event) {
    wire('log')->save('testing', 'Roles::added');
});

Nothing will appear in the log file.

This has been confirmed by others: https://processwire.com/talk/topic/17087-roles-hooks-not-working/

Setup/Environment

  • ProcessWire version: 3.0.73, 2.8.62, 2.7.3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions