From 0b1ea44b598218210240e00a51dccab85f632b79 Mon Sep 17 00:00:00 2001 From: RavMorgan <48182970+RavMorgan@users.noreply.github.com> Date: Fri, 28 Jul 2023 22:49:21 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=BE=D1=82=20=D1=82=D0=B0=D0=BA=20?= =?UTF-8?q?=D0=B2=D0=BE=D1=82=20(#225)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Mona Hmiza <> --- .../Cargo/BUI/CargoOrderConsoleBoundUserInterface.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Content.Client/Cargo/BUI/CargoOrderConsoleBoundUserInterface.cs b/Content.Client/Cargo/BUI/CargoOrderConsoleBoundUserInterface.cs index 6c9af85a2c..42ee98c090 100644 --- a/Content.Client/Cargo/BUI/CargoOrderConsoleBoundUserInterface.cs +++ b/Content.Client/Cargo/BUI/CargoOrderConsoleBoundUserInterface.cs @@ -1,3 +1,4 @@ +using System.Linq; using Content.Shared.Cargo; using Content.Client.Cargo.UI; using Content.Shared.Cargo.BUI; @@ -143,9 +144,12 @@ namespace Content.Client.Cargo.BUI return false; } + var requester = new string(_orderMenu?.Requester.Text.Take(200).ToArray()) ?? ""; + var reason = new string(_orderMenu?.Reason.Text.Take(200).ToArray()) ?? ""; + SendMessage(new CargoConsoleAddOrderMessage( - _orderMenu?.Requester.Text ?? "", - _orderMenu?.Reason.Text ?? "", + requester, + reason, _product?.ID ?? "", orderAmt));