Skip to content

Static Plugins trigger pdoToolsOnFenomInit even if not defined as their Event #380

@darQrrR

Description

@darQrrR

Summary

Static Plugins won't trigger their respective System Events if ANY other plugin has pdoToolsOnFenomInit as theirs (i.e. ClientConfig). Instead they will also trigger pdoToolsOnFenomInit even if it is not defined as their System Event. Tested on a fresh installation.

Steps to reproduce

  • Enable pdotools_fenom_parser in System Settings
  • Add regular Plugin, add pdoToolsOnFenomInit as System Event
  • Add static Plugin, add OnLoadWebDocument or any other Event
  • Log triggered event

Observed behavior

Static Plugin triggers pdoToolsOnFenomInit, not OnLoadWebDocument

Expected behavior

Static Plugin should trigger OnLoadWebDocument

Solution

  • When Plugin with pdoToolsOnFenomInit is disabled, static plugin will trigger correctly again
  • When static is disabled for static plugin, event will correctly again as well

Environment

MODX 3.0.5
pdoTools 3.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions