* [bug#56819] Add desc field on skip special.

This commit is contained in:
liyang
2024-11-11 08:15:12 +08:00
committed by 曹延义
parent 63ebf701ea
commit c2cd3df487
+2 -2
View File
@@ -68,7 +68,7 @@ class host extends control
{
if($_POST)
{
$formData = form::data($this->config->host->form->create)->add('createdBy', $this->app->user->account)->add('createdDate', helper::now())->skipSpecial('name')->get();
$formData = form::data($this->config->host->form->create)->add('createdBy', $this->app->user->account)->add('createdDate', helper::now())->skipSpecial('name,desc')->get();
$this->hostZen->checkFormData($formData);
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
@@ -99,7 +99,7 @@ class host extends control
{
if($_POST)
{
$formData = form::data($this->config->host->form->edit)->add('id', $id)->add('editedBy', $this->app->user->account)->add('editedDate', helper::now())->skipSpecial('name')->get();
$formData = form::data($this->config->host->form->edit)->add('id', $id)->add('editedBy', $this->app->user->account)->add('editedDate', helper::now())->skipSpecial('name,desc')->get();
$this->hostZen->checkFormData($formData);
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));