Fix category color not being updated when set to empty value

This commit is contained in:
Kijin Sung 2025-05-29 09:47:04 +09:00
parent 0501671271
commit 2df0474a06

View file

@ -2734,7 +2734,7 @@ class DocumentController extends Document
if(!$args) $args = Context::gets('module_srl','category_srl','parent_srl','category_title','category_description','expand','is_default','group_srls','category_color','mid');
$args->title = trim($args->category_title);
$args->description = trim($args->category_description);
$args->color = $args->category_color;
$args->color = trim($args->category_color);
$args->expand = (isset($args->expand) && $args->expand === 'Y') ? 'Y' : 'N';
$args->is_default = (isset($args->is_default) && $args->is_default === 'Y') ? 'Y' : 'N';