Skip to content

Commit 265af9d

Browse files
author
Avikarsha Saha
committed
Merge branch 'MAUT-11460' into development
2 parents e1a18d4 + bad9899 commit 265af9d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

EventListener/TokenSubscriber.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ private function getCustomFieldValue(CustomObject $customObject, string $customF
452452
if (empty($fieldValue->getValue())) {
453453
$fieldValue->setValue($fieldValue->getCustomField()->getDefaultValue());
454454
}
455-
$fieldValues[] = $fieldValue->getCustomField()->getTypeObject()->valueToString($fieldValue);
455+
$fieldValues[] = $fieldValue->getValue();
456456
} catch (NotFoundException $e) {
457457
// Custom field not found.
458458
}

Tests/Functional/Token/EmailWithCustomObjectDynamicContentFunctionalTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function testDynamicContentEmail(): void
109109
$this->buildDynamicContentArray([
110110
['nexon-text', 'Tata', '='],
111111
['nexon-datetime', '2024-07-01', 'gte'],
112-
['nexon-multiselect', '"Option A"', 'in'],
112+
['nexon-multiselect', 'option_a', 'in'],
113113
]),
114114
'Custom Object Dynamic Content',
115115
], [

0 commit comments

Comments
 (0)