Fix #2519 okay, let's fficially support comma-separated categories

This commit is contained in:
Kijin Sung 2025-03-08 18:52:47 +09:00
parent 5d1c6dd59a
commit 59448bcfb1

View file

@ -574,9 +574,15 @@ class BoardView extends Board
}
// if the category is enabled, then get the category
if($this->module_info->use_category=='Y')
if ($this->module_info->use_category === 'Y')
{
$args->category_srl = (int)Context::get('category') ?: null;
$args->category_srl = (string)Context::get('category') ?: null;
// Support comma-separated categories #2519
if ($args->category_srl)
{
$args->category_srl = implode(',', array_map('intval', explode(',', $args->category_srl)));
}
}
// setup the sort index and order index