From 0064f79335d04490cc070183b36d38859c80e6e6 Mon Sep 17 00:00:00 2001 From: guanxiying Date: Tue, 10 Dec 2019 10:39:45 +0800 Subject: [PATCH 1/2] * Fix miss ) bug. --- module/admin/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/admin/model.php b/module/admin/model.php index e097e06407..12bfb1090d 100644 --- a/module/admin/model.php +++ b/module/admin/model.php @@ -239,7 +239,7 @@ class adminModel extends model /* Check weak password when login. */ if($this->app->moduleName == 'user' and $this->app->methodName == 'login') { - if(!isset($_POST['passwordStrength']) return true; + if(!isset($_POST['passwordStrength'])) return true; if(isset($this->config->safe->mode) and $this->post->passwordStrength < $this->config->safe->mode) return true; } From 727c591a68fa1ba082ab82721b47f8b3f2de9c4e Mon Sep 17 00:00:00 2001 From: guanxiying Date: Tue, 10 Dec 2019 10:58:07 +0800 Subject: [PATCH 2/2] * Fix bug #2471. --- module/build/js/create.js | 7 +++++++ module/build/view/create.html.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 module/build/js/create.js diff --git a/module/build/js/create.js b/module/build/js/create.js new file mode 100644 index 0000000000..3f64da6a53 --- /dev/null +++ b/module/build/js/create.js @@ -0,0 +1,7 @@ +$().ready(function() +{ + $('#lastBuildBtn').click(function() + { + $('#name').val($(this).text()).focus(); + }); +}); diff --git a/module/build/view/create.html.php b/module/build/view/create.html.php index e944362f84..c22cee3054 100644 --- a/module/build/view/create.html.php +++ b/module/build/view/create.html.php @@ -44,7 +44,7 @@ -
  build->last . ': ' . $lastBuild->name . '';?>
+
  build->last . ': ' . $lastBuild->name . '';?>