Skip to content

Commit 1479d6e

Browse files
committed
Fix chunk option when using category name property
Signed-off-by: matdave <[email protected]>
1 parent 03aa3d1 commit 1479d6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/components/fred/src/Traits/Endpoint/Ajax/GetChunks.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function process()
3030
if (is_numeric($cat)) {
3131
$catArr[] = $cat;
3232
} else {
33-
$obj = $this->modx->getObject($this->categoryClass, ['name' => $cat]);
33+
$obj = $this->modx->getObject($this->categoryClass, ['category' => $cat]);
3434
if (!empty($obj)) {
3535
$catArr[] = $obj->get('id');
3636
}

0 commit comments

Comments
 (0)