Skip to content

Commit

Permalink
Merge pull request #65 from Trunkrs/develop
Browse files Browse the repository at this point in the history
Release: v2.3.1 - Hotfix: add error mesage on empty label
  • Loading branch information
fmsthird authored Sep 1, 2023
2 parents 635d170 + 7c8416f commit bc142ac
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Controller/Adminhtml/Order/PrintLabelAndPackingSlips.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ public function execute()
}
}

if (empty($this->orderIds)) {
if (empty($this->orderIds) || empty($this->labels)) {
$this->messageManager->addErrorMessage(
__('No pdf generated. Trunkrs shipment not found.')
__('No document generated. Trunkrs shipment not found.')
);
return $this->_redirect($this->_redirect->getRefererUrl());
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"trunkrs magento 2 shipping method"
],
"type": "magento2-module",
"version": "2.3.0",
"version": "2.3.1",
"license": [
"MIT"
],
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Trunkrs_Carrier" setup_version="2.3.0">
<module name="Trunkrs_Carrier" setup_version="2.3.1">
<sequence>
<module name="Magento_Backend"/>
<module name="Magento_Config"/>
Expand Down
2 changes: 1 addition & 1 deletion view/adminhtml/templates/system/config/trunkrs.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ echo "<div id='trunkrs-app'></div>";
'browserInfo' => $_SERVER['HTTP_USER_AGENT'],
'phpVersion' => phpversion(),
'phpExtensions' => get_loaded_extensions(),
'pluginVersion' => 'v2.3.0'
'pluginVersion' => 'v2.3.1'
],
'disableAutoShipment' => $block->getDisableAutoShipment()
]);
Expand Down
2 changes: 1 addition & 1 deletion view/adminhtml/ui_component/sales_order_grid.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<settings>
<url path="trunkrs/order/printLabelAndPackingSlips"/>
<type>trunkrs_print_shipping_label_and_packing_slips</type>
<label translate="true">Trunkrs - Print packing slip &amp; shipping Label</label>
<label translate="true">Trunkrs - Print packing slip &amp; shipping label</label>
</settings>
</action>
</massaction>
Expand Down

0 comments on commit bc142ac

Please sign in to comment.