From 8a44a6dc9544a48183e85656c43e3c4b7031065e Mon Sep 17 00:00:00 2001 From: thanatos Date: Fri, 17 Sep 2021 13:25:40 +0800 Subject: [PATCH] fix bug --- module/api/view/create.html.php | 12 ++++++------ module/common/lang/common.php | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/module/api/view/create.html.php b/module/api/view/create.html.php index 2e64fbd56a..9f777aa44f 100644 --- a/module/api/view/create.html.php +++ b/module/api/view/create.html.php @@ -111,32 +111,32 @@
api->field; ?> - +
api->required; ?> - api->requiredOptions, $param['required'] ? $param['required'] : 0, "class='form-control'"); ?> + api->requiredOptions, 0, "class='form-control'"); ?>
api->scope; ?> - api->paramsScopeOptions, $param['scope'], "class='form-control' onchange='loadParamsTypeOptions(this);'"); ?> + api->paramsScopeOptions, '', "class='form-control' onchange='loadParamsTypeOptions(this);'"); ?>
api->paramsType; ?> - api->paramsTypeOptions, $param['paramsType'], "class='form-control' onchange='changeType(this);'"); ?> + api->paramsTypeOptions, '', "class='form-control' onchange='changeType(this);'"); ?>
-
'> +