aboutsummaryrefslogtreecommitdiffstats
path: root/admin/post/insert.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/post/insert.php')
-rw-r--r--admin/post/insert.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/admin/post/insert.php b/admin/post/insert.php
index 4587a87..8e08fb3 100644
--- a/admin/post/insert.php
+++ b/admin/post/insert.php
@@ -56,16 +56,7 @@ try {
$FormTemplate->set('FORM', [
'TYPE' => 'INSERT',
'INFO' => $messages ?? [],
- 'DATA' => [
- 'ID' => $Attribute->get('id'),
- 'USER' => $Attribute->get('user'),
- 'SLUG' => $Attribute->get('slug'),
- 'NAME' => $Attribute->get('name'),
- 'BODY' => $Attribute->get('body'),
- 'ARGV' => $Attribute->get('argv'),
- 'TIME_INSERT' => $Attribute->get('time_insert'),
- 'TIME_UPDATE' => $Attribute->get('time_update'),
- ],
+ 'DATA' => array_change_key_case($Attribute->getAll(), CASE_UPPER),
'USER_LIST' => $userAttributes ?? [],
'TOKEN' => Application::getSecurityToken()
]);