From 9afe721378aaa48b9de967a2bf40d27f20c91ca7 Mon Sep 17 00:00:00 2001 From: zenggang Date: Thu, 31 Aug 2023 05:38:53 +0000 Subject: [PATCH] * Fix bug#38008 --- module/host/control.php | 2 +- module/host/css/changestatus.ui.css | 2 ++ module/host/ui/changestatus.html.php | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 module/host/css/changestatus.ui.css diff --git a/module/host/control.php b/module/host/control.php index 863d644d91..b17fc3d0fb 100644 --- a/module/host/control.php +++ b/module/host/control.php @@ -178,7 +178,7 @@ class host extends control $reason = $this->lang->host->{$reasonKey}; if($_SERVER['REQUEST_METHOD'] == 'POST') { - $postData = fixer::input('post')->get(); + $postData = fixer::input('post')->skipSpecial('reason')->get(); if(empty($postData->reason)) { dao::$errors['reason'][] = sprintf($this->lang->error->notempty, $reason); diff --git a/module/host/css/changestatus.ui.css b/module/host/css/changestatus.ui.css new file mode 100644 index 0000000000..640ba0c3d0 --- /dev/null +++ b/module/host/css/changestatus.ui.css @@ -0,0 +1,2 @@ +.form-grid .form-label{width: 1rem;} +.form-grid .form-group{padding-left: 1rem;} diff --git a/module/host/ui/changestatus.html.php b/module/host/ui/changestatus.html.php index bd9d897912..26f73f7a57 100644 --- a/module/host/ui/changestatus.html.php +++ b/module/host/ui/changestatus.html.php @@ -21,7 +21,9 @@ formPanel formGroup ( set::name('reason'), - set::control('textarea'), + set::label(' '), + set::control('editor'), + set::required(true), ), ), );