mirror of https://gitee.com/karson/fastadmin.git
优化SelectPage编码输出
parent
c74b9dc24a
commit
77300998fc
|
|
@ -577,6 +577,7 @@ class Backend extends Controller
|
||||||
$result = array_intersect_key(($item instanceof Model ? $item->toArray() : (array)$item), array_flip($fields));
|
$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['pid'] = isset($item['pid']) ? $item['pid'] : (isset($item['parent_id']) ? $item['parent_id'] : 0);
|
||||||
|
$result = array_map("htmlentities", $result);
|
||||||
$list[] = $result;
|
$list[] = $result;
|
||||||
}
|
}
|
||||||
if ($istree && !$primaryvalue) {
|
if ($istree && !$primaryvalue) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue