Commit bf2c4c6
committed
Fixed
Added array check for `$event->newValue` in `handleChangedGateway()` to handle cases where nested config keys are removed, which can cause the event to fire with non-array data.
This matches the pattern used in `craft\services\Fields::handleChangedField()`.
Fixes #4185project-config/apply error when gateway orderCondition is removed1 parent 3ca0c93 commit bf2c4c6
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
298 | 303 | | |
299 | 304 | | |
300 | 305 | | |
| |||
0 commit comments