File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ Yii Framework 2 Change Log
10
10
- Bug #20211 : Add acceptable parameters to ` MaskedInput::init() ` method (alxlnk)
11
11
- Bug #20226 : Revert all PR for "Data providers perform unnecessary COUNT queries that negatively affect performance" (@terabytesoftw )
12
12
- Bug #20147 : Fix error handler compatibility with PHP 8.3 (samdark)
13
+ - Bug #20230 : Fix getting ID in ` \yii\filters\Cors::actions() ` when attached to a module (timkelty)
13
14
14
15
15
16
2.0.50 May 30, 2024
Original file line number Diff line number Diff line change @@ -123,8 +123,10 @@ public function beforeAction($action)
123
123
*/
124
124
public function overrideDefaultSettings ($ action )
125
125
{
126
- if (isset ($ this ->actions [$ action ->id ])) {
127
- $ actionParams = $ this ->actions [$ action ->id ];
126
+ $ actionId = $ this ->getActionId ($ action );
127
+
128
+ if (isset ($ this ->actions [$ actionId ])) {
129
+ $ actionParams = $ this ->actions [$ actionId ];
128
130
$ actionParamsKeys = array_keys ($ actionParams );
129
131
foreach ($ this ->cors as $ headerField => $ headerValue ) {
130
132
if (in_array ($ headerField , $ actionParamsKeys )) {
You can’t perform that action at this time.
0 commit comments