Skip to content

Commit 65d8c89

Browse files
Add fallback for missing exclude families
1 parent 04741fd commit 65d8c89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Plugin/Job/Product.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function __construct(
1616
) {
1717
}
1818

19-
public function getFamiliesToExport(): ?string
19+
public function getFamiliesToExclude(): ?string
2020
{
2121
return $this->scopeConfig->getValue(self::PRODUCTS_FILTERS_EXCLUDED_FAMILIES);
2222
}
@@ -25,7 +25,7 @@ public function afterGetFamiliesToImport(
2525
AkeneoProduct $subject,
2626
array $families
2727
): array {
28-
$familiesToExclude = explode(',', $this->getFamiliesToExport());
28+
$familiesToExclude = explode(',', $this->getFamiliesToExclude() ?? '');
2929

3030
if (!$families || $families[0] === '') {
3131
$families = array_values($this->familyFilter->getFamilies() ?? []);

0 commit comments

Comments
 (0)