minor webui fixes around the group handling

This commit is contained in:
SJ
2012-06-22 13:37:13 +02:00
parent e944852283
commit 16b01b9b37
6 changed files with 24 additions and 11 deletions

View File

@ -41,14 +41,10 @@ class ControllerGroupAdd extends Controller {
if($ret == 0) {
//$this->data['post'] = $this->request->post;
//$this->data['next_group_id'] = $this->model_group_group->getNextUid();
$this->data['post'] = $this->request->post;
}
}
else {
//$this->data['next_group_id'] = $this->model_group_group->getNextUid();
}
}
else {
$this->template = "common/error.tpl";
@ -68,6 +64,9 @@ class ControllerGroupAdd extends Controller {
$this->error['group'] = $this->data['text_missing_data'];
}
if(!isset($this->request->post['email']) || $this->request->post['email'] == '') {
$this->error['email'] = $this->data['text_missing_data'];
}
if (!$this->error) {
return true;