Skip to content

Commit

Permalink
Changed ChangeNewsletterSubscriptionsGenericEvent operator from "OR" …
Browse files Browse the repository at this point in the history
…to "AND"

- This only affects UI, no functional change.

remp/crm#3178
  • Loading branch information
miroc committed May 9, 2024
1 parent 77cdad5 commit 39c4c6e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/Scenarios/ChangeNewsletterSubscriptionsGenericEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@

class ChangeNewsletterSubscriptionsGenericEvent implements ScenarioGenericEventInterface
{
private $mailTypesRepository;

public function __construct(
MailTypesRepository $mailTypesRepository
) {
$this->mailTypesRepository = $mailTypesRepository;
public function __construct(private MailTypesRepository $mailTypesRepository)
{
}

public function getLabel(): string
Expand All @@ -35,12 +31,14 @@ public function getParams(): array
new StringLabeledArrayParam(
'subscribe_newsletter_codes',
'Subscribe newsletter codes',
$mailTypeOptions
$mailTypeOptions,
'and',
),
new StringLabeledArrayParam(
'unsubscribe_newsletter_codes',
'Unsubscribe newsletter codes',
$mailTypeOptions
$mailTypeOptions,
'and'
),
];
}
Expand Down

0 comments on commit 39c4c6e

Please sign in to comment.