diff --git a/module/entry/config/form.php b/module/entry/config/form.php index 31d9730e07..ebdd77602a 100644 --- a/module/entry/config/form.php +++ b/module/entry/config/form.php @@ -9,10 +9,9 @@ $config->entry->form->create['account'] = array('type' => 'string', 'required $config->entry->form->create['ip'] = array('type' => 'string', 'required' => true, 'filter' => 'trim', 'default' => '*'); $config->entry->form->create['key'] = array('type' => 'string', 'required' => true, 'filter' => 'trim', 'default' => ''); $config->entry->form->create['allIP'] = array('type' => 'string', 'required' => true, 'filter' => 'trim', 'default' => 'off'); -$config->entry->form->create['freePasswd'] = array('type' => 'int', 'required' => true); +$config->entry->form->create['freePasswd'] = array('type' => 'int', 'required' => false); $config->entry->form->create['desc'] = array('type' => 'string', 'required' => false, 'default' => '', 'control' => 'editor'); - $config->entry->form->edit['name'] = array('type' => 'string', 'required' => true, 'filter' => 'trim'); $config->entry->form->edit['code'] = array('type' => 'string', 'required' => true, 'filter' => 'trim'); $config->entry->form->edit['account'] = array('type' => 'string', 'required' => true, 'filter' => 'trim', 'default' => ''); diff --git a/module/entry/control.php b/module/entry/control.php index 7075d73417..f0859b3753 100644 --- a/module/entry/control.php +++ b/module/entry/control.php @@ -35,6 +35,7 @@ class entry extends control } /** + * 添加应用接入禅道。 * Create an entry. * * @access public @@ -60,8 +61,8 @@ class entry extends control return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => inlink('browse'))); } - $this->view->title = $this->lang->entry->common . $this->lang->colon . $this->lang->entry->create; - $this->view->users = $this->loadModel('user')->getPairs('nodeleted|noclosed'); + $this->view->title = $this->lang->entry->common . $this->lang->colon . $this->lang->entry->create; + $this->view->users = $this->loadModel('user')->getPairs('nodeleted|noclosed'); $this->display(); }