Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions core/src/Revolution/Processors/Element/GetList.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,22 @@
$c->select([
'category_name' => 'Category.category',
]);

Check failure on line 40 in core/src/Revolution/Processors/Element/GetList.php

View workflow job for this annotation

GitHub Actions / phpcs

Whitespace found at end of line
$id = $this->getProperty('id', '');
$categoryId = $this->getProperty('categoryId','');

Check failure on line 42 in core/src/Revolution/Processors/Element/GetList.php

View workflow job for this annotation

GitHub Actions / phpcs

No space found after comma in argument list

Check failure on line 43 in core/src/Revolution/Processors/Element/GetList.php

View workflow job for this annotation

GitHub Actions / phpcs

Whitespace found at end of line
if (!empty($id)) {
$c->where([
$c->getAlias() . '.id:IN' => is_string($id) ? explode(',', $id) : $id,
]);
}

if (!empty($categoryId)) {
$c->where([
'Category.id:IN' => is_string($categoryId) ? explode(',', $categoryId) : $categoryId,
]);
}

return $c;
}
}
Loading