From 828596fc54b487b9257409fdd40bcd9bdf4f68ec Mon Sep 17 00:00:00 2001 From: liumengyi Date: Tue, 21 Jan 2025 11:05:49 +0800 Subject: [PATCH] * [bug#57239,done,1h] check empty value. --- module/transfer/ui/exporttemplate.html.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/transfer/ui/exporttemplate.html.php b/module/transfer/ui/exporttemplate.html.php index b65ce5d73c..f0df1e702f 100644 --- a/module/transfer/ui/exporttemplate.html.php +++ b/module/transfer/ui/exporttemplate.html.php @@ -12,6 +12,8 @@ namespace zin; $this->app->loadLang('file'); +set::title($lang->transfer->exportTemplate); + form ( set::target('_self'), @@ -53,7 +55,7 @@ h::js { const \$num = $(this).find('[name=num]'); removeNumTip(); - if(isNaN(\$num.val())) + if(isNaN(\$num.val()) || \$num.val().trim() == '') { \$num.after('
{$numError}
'); \$num.addClass('has-error');