add custom field to staffpanel

This commit is contained in:
xiaomlove
2021-03-18 20:32:35 +08:00
parent 428ebd85b8
commit fab59c1f5b
15 changed files with 115 additions and 54 deletions

View File

@@ -25,7 +25,7 @@ if ($action == 'view') {
$result = $field->save($_REQUEST);
redirect('fields.php?action=view');
} catch (\Exception $e) {
stderr($lang_fields['field_management']." - ".$lang_fields['text_field'], $e->getMessage());
stderr($lang_fields['field_management'], $e->getMessage());
}
} elseif ($action == 'edit') {
$id = intval($_GET['id'] ?? 0);