Skip to content

Commit 74fafa1

Browse files
authored
[Bug]: Segment Type forced to be AND or OR (#562)
1 parent 8da6d00 commit 74fafa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CustomerList/Filter/CustomerSegment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function __construct(array $segments, DataObject\CustomerSegmentGroup $se
7373
{
7474
$this->identifier = $this->buildIdentifier($segmentGroup);
7575
$this->segmentGroup = $segmentGroup;
76-
$this->type = $type;
76+
$this->type = $type === self::OPERATOR_AND ? self::OPERATOR_AND : self::OPERATOR_OR;
7777

7878
foreach ($segments as $segment) {
7979
$this->addCustomerSegment($segment);

0 commit comments

Comments
 (0)