优化SelectPage编码输出

pull/477/head
Karson 2024-09-26 17:23:49 +08:00
parent c74b9dc24a
commit 77300998fc
1 changed files with 1 additions and 0 deletions

View File

@ -577,6 +577,7 @@ class Backend extends Controller
$result = array_intersect_key(($item instanceof Model ? $item->toArray() : (array)$item), array_flip($fields));
}
$result['pid'] = isset($item['pid']) ? $item['pid'] : (isset($item['parent_id']) ? $item['parent_id'] : 0);
$result = array_map("htmlentities", $result);
$list[] = $result;
}
if ($istree && !$primaryvalue) {