Commit 9eee922
committed
fix(guard): cast drp_action valid-actions to strings for strict in_array
array_keys($actions + $assoc_actions) returns integer keys; POST values
are always strings. Without the strval() cast, in_array(..., true) with
strict comparison always fails, making every bulk form action unreachable.
Adds regression test asserting the strval() cast is present.
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>1 parent 4253b17 commit 9eee922
2 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
0 commit comments