Show latest event in history for USPS tracking
This commit is contained in:
parent
f35e07033f
commit
478440be08
@ -72,6 +72,8 @@ class Tracking_USPS {
|
|||||||
$current_status->setLocation($current_location);
|
$current_status->setLocation($current_location);
|
||||||
|
|
||||||
$info->setCurrentStatus($current_status);
|
$info->setCurrentStatus($current_status);
|
||||||
|
// USPS doesn't put the latest entry in the history
|
||||||
|
$info->appendHistoryEntry($current_status);
|
||||||
|
|
||||||
$from = new Location();
|
$from = new Location();
|
||||||
$from->city = (string) $trackinfo->OriginCity ?? "";
|
$from->city = (string) $trackinfo->OriginCity ?? "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user