When posting to a controller action (ex. gift-voucher/cart/add-code), the $this->request (https://github.com/verbb/gift-voucher/blob/craft-5/src/controllers/CartController.php#L32) value is just a string with the value request,
Only in the yii2/base/Controller.php init() method the value is getting set to an actual Request object.
When moving the parent::init() function to the top, the value is set correctly
Describe the bug
When posting to a controller action (ex.
gift-voucher/cart/add-code
), the$this->request
(https://github.com/verbb/gift-voucher/blob/craft-5/src/controllers/CartController.php#L32) value is just a string with the valuerequest
, Only in theyii2/base/Controller.php
init() method the value is getting set to an actual Request object. When moving theparent::init()
function to the top, the value is set correctlySteps to reproduce
gift-voucher/cart/add-code
Craft CMS version
5.2.3
Plugin version
4.0.0
Multi-site?
yes
Additional context
No response