[BUG] Can't get GLS labels when using re-order
Closed this issue · 1 comments
vandijkstef commented
To Reproduce
Steps to reproduce the behavior:
- Create an order that is using GLS as shipping method
- Click on 'Re-order' in the admin and set it to use GLS as shipping method
- Create a shipment for the new order
- Try to retrieve the label, the exception pasted below appears
Expected result
Retrieving a GLS label
Actual result
1 exception(s):
Exception #0 (Exception): Notice: Trying to get property 'deliveryAddress' of non-object in /Users/vandijkstef/Web/emaillegigant/web/vendor/tig/gls-magento2/Service/Label/Create.php on line 156
Exception #0 (Exception): Notice: Trying to get property 'deliveryAddress' of non-object in /Users/vandijkstef/Web/emaillegigant/web/vendor/tig/gls-magento2/Service/Label/Create.php on line 156
<pre>#1 TIG\GLS\Service\Label\Create->mapLabelData() called at [vendor/tig/gls-magento2/Service/Label/Create.php:142]
#2 TIG\GLS\Service\Label\Create->getRequestData() called at [vendor/tig/gls-magento2/Controller/Adminhtml/Label/Create.php:83]
#3 TIG\GLS\Controller\Adminhtml\Label\Create->execute() called at [vendor/magento/framework/App/Action/Action.php:108]
#4 Magento\Framework\App\Action\Action->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#5 TIG\GLS\Controller\Adminhtml\Label\Create\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#6 TIG\GLS\Controller\Adminhtml\Label\Create\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#7 TIG\GLS\Controller\Adminhtml\Label\Create\Interceptor->___callPlugins() called at [generated/code/TIG/GLS/Controller/Adminhtml/Label/Create/Interceptor.php:26]
#8 TIG\GLS\Controller\Adminhtml\Label\Create\Interceptor->dispatch() called at [vendor/magento/framework/App/FrontController.php:159]
#9 Magento\Framework\App\FrontController->processRequest() called at [vendor/magento/framework/App/FrontController.php:98]
#10 Magento\Framework\App\FrontController->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#11 Magento\Framework\App\FrontController\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#12 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#13 Magento\Framework\App\FrontController\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:26]
#14 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:116]
#15 Magento\Framework\App\Http->launch() called at [vendor/magento/framework/App/Bootstrap.php:261]
#16 Magento\Framework\App\Bootstrap->run() called at [pub/index.php:94]
</pre>
Workaround
None
Screenshots
None
** Please complete the following information**
- Magento 2.3.4
- PHP version: 7.3.23
- TIG GLS version: 1.3.2
tig-jeffreybranderhorst commented
Hi @vandijkstef ,
Thank you for submitting this issue. We have placed it on our backlog to investigate further and to apply the fix!
Have a great day,
Jeffrey