Skip to content

Commit

Permalink
Update TrackTraceHolder.php
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardPerdaan committed Oct 14, 2020
1 parent d036f04 commit 366ae29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Sales/TrackTraceHolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public function convertDataFromMagentoToApi($magentoTrack, $options)
$packageType = $options['package_type'] ? $options['package_type'] : AbstractConsignment::PACKAGE_TYPE_PACKAGE;
}

if (is_string($packageType)) {
if (!is_numeric($packageType)) {
$packageType = AbstractConsignment::PACKAGE_TYPES_NAMES_IDS_MAP[$packageType];
}

Expand Down

0 comments on commit 366ae29

Please sign in to comment.