Skip to content

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

Description

@marcbyte64

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions