From 3c1fe6692eec008264f0c918478f02005725be4e Mon Sep 17 00:00:00 2001 From: Jay Shah <602425+jshah4517@users.noreply.github.com> Date: Thu, 10 Apr 2025 17:29:26 +0100 Subject: [PATCH 1/6] chore: add purified_description to custom field models --- src/Model/Shared/CustomField.php | 26 +++++++++++++++++++ .../Ticket/TicketCustomFieldData.php | 3 ++- .../DataFixtures/User/UserCustomFieldData.php | 3 ++- 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/src/Model/Shared/CustomField.php b/src/Model/Shared/CustomField.php index ed9e4858..94fcb6ee 100644 --- a/src/Model/Shared/CustomField.php +++ b/src/Model/Shared/CustomField.php @@ -108,6 +108,12 @@ abstract class CustomField extends BaseModel */ private $description; + /** + * @var string|null + * @SerializedName("purified_description") + */ + private $purifiedDescription; + /** * @var int|null * @SerializedName("type") @@ -385,6 +391,26 @@ public function setDescription(?string $description): self return $this; } + /** + * @return string|null + */ + public function getPurifiedDescription(): ?string + { + return $this->purified_description; + } + + /** + * @param string|null $description + * @return self + */ + public function setPurifiedDescription(?string $description): self + { + $this->purified_description = $description; + + return $this; + } + + /** * @return int|null */ diff --git a/test/DataFixtures/Ticket/TicketCustomFieldData.php b/test/DataFixtures/Ticket/TicketCustomFieldData.php index d7a3f2b7..01da3e8d 100644 --- a/test/DataFixtures/Ticket/TicketCustomFieldData.php +++ b/test/DataFixtures/Ticket/TicketCustomFieldData.php @@ -13,7 +13,8 @@ class TicketCustomFieldData extends BaseModelData public const DATA = [ 'id' => 1, 'name' => 'Related Product/Service', - 'description' => 'Please select an option if this ticket is related to one of your products/services.', + 'description' => '
Please select an option if this ticket is related to one of your products/services.
Please select an option if this ticket is related to one of your products/services.
Custom
Custom