From 3284810a884a4e6e689a3c7e21a88341579bfbc7 Mon Sep 17 00:00:00 2001 From: Mark W <24956497+ndg63276@users.noreply.github.com> Date: Thu, 14 Dec 2023 15:34:42 +0000 Subject: [PATCH] LIMS-1136: Trim preceding spaces from postcode and email address (#704) Co-authored-by: Mark Williams --- api/src/Page/Shipment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/Page/Shipment.php b/api/src/Page/Shipment.php index ca95ef552..88d45adc0 100644 --- a/api/src/Page/Shipment.php +++ b/api/src/Page/Shipment.php @@ -2685,10 +2685,10 @@ function _book_shipment_in_shipping_service($user, $shipment, $dewars, $journey_ "address_line3" => isset($address_lines[2]) ? $address_lines[2] : null, "city" => $user["city"], "country" => $user["country"], - "post_code" => rtrim($user["postcode"]), + "post_code" => trim($user["postcode"]), "contact_name" => $user["name"], "contact_phone_number" => $user["phone"], - "contact_email" => rtrim($user["email"]) + "contact_email" => trim($user["email"]) ); $shipment_data = array( "shipment_reference" => $shipment["PROP"],