Skip to content

[4.x] Fix globals save event#8564

Merged
jasonvarga merged 1 commit into
4.xfrom
global-save-event
Aug 10, 2023
Merged

[4.x] Fix globals save event#8564
jasonvarga merged 1 commit into
4.xfrom
global-save-event

Conversation

@jasonvarga

Copy link
Copy Markdown
Member

Fixes #8559
Replaces #8561

Prior to #8343 when you save global variables in the CP, the GlobalSetSaved (etc) events would be dispatched. That PR made it so that when you save the variables, only the variable events got dispatched - logically. But that was a breaking change.

This PR makes it so that when you save the variables form, it'll still save the global set and dispatch the original events. This fixes the breaking change.

@robdekort

Copy link
Copy Markdown
Contributor

I can’t follow along with any of this I’m afraid. But will this event I’m using get deprecated? If so I can prepare.

@edalzell

Copy link
Copy Markdown
Contributor

I can’t follow along with any of this I’m afraid. But will this event I’m using get deprecated? If so I can prepare.

No, the opposite Rob, it did break but this is the fix.

@robdekort

Copy link
Copy Markdown
Contributor

Cool. And it’ll stay in for the time being I guess. Thx

@jasonvarga

Copy link
Copy Markdown
Member Author

Maybe in v5 it'll change. But only maybe.

@robdekort

Copy link
Copy Markdown
Contributor

Perfect. I'm sure by then I will have forgotten all about this so I can bug you all with the same questions again.

@jasonvarga

Copy link
Copy Markdown
Member Author

Looking forward to it ❤️

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GlobalSetSaved event doesn't trigger anymore since 4.16

3 participants