From 2382a3e75ba62fdebe2ef7ed0836efaae31e76ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=A1=E6=A0=8B?= Date: Fri, 15 Mar 2024 09:59:32 +0800 Subject: [PATCH] * Code for bug #45910. --- module/entry/control.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/entry/control.php b/module/entry/control.php index b41d16db5c..79885bd7ea 100644 --- a/module/entry/control.php +++ b/module/entry/control.php @@ -46,9 +46,9 @@ class entry extends control { if($_POST) { + if($this->post->freePasswd) unset($this->config->entry->form->create['account']); $entry = form::data($this->config->entry->form->create) ->setIF($this->post->allIP === 'on', 'ip', '*') - ->setIF($this->post->freePasswd == '1', 'account', '') ->add('createdBy', $this->app->user->account) ->add('createdDate', helper::now()) ->remove('allIP') @@ -79,9 +79,9 @@ class entry extends control { if($_POST) { + if($this->post->freePasswd) unset($this->config->entry->form->edit['account']); $entry = form::data($this->config->entry->form->edit) ->setIF($this->post->allIP === 'on', 'ip', '*') - ->setIF($this->post->freePasswd == '1', 'account', '') ->add('editedBy', $this->app->user->account) ->add('editedDate', helper::now()) ->remove('allIP')