mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 01:37:02 +02:00
introduced a new group management feature
This commit is contained in:
@ -70,6 +70,10 @@ class ControllerGroupAdd extends Controller {
|
||||
$this->error['email'] = $this->data['text_missing_data'];
|
||||
}
|
||||
|
||||
if(!isset($this->request->post['assigned_email']) || $this->request->post['assigned_email'] == '') {
|
||||
$this->error['assigned_email'] = $this->data['text_missing_data'];
|
||||
}
|
||||
|
||||
if (!$this->error) {
|
||||
return true;
|
||||
} else {
|
||||
|
@ -59,6 +59,7 @@ class ControllerGroupEdit extends Controller {
|
||||
else {
|
||||
$this->data['group'] = $this->model_group_group->get_domain_by_id($this->data['id']);
|
||||
$this->data['email'] = $this->model_group_group->get_emails_by_group_id($this->data['id']);
|
||||
$this->data['assigned_email'] = $this->model_group_group->get_assigned_emails_by_group_id($this->data['id']);
|
||||
}
|
||||
}
|
||||
else {
|
||||
@ -83,6 +84,10 @@ class ControllerGroupEdit extends Controller {
|
||||
$this->error['email'] = $this->data['text_missing_data'];
|
||||
}
|
||||
|
||||
if(!isset($this->request->post['assigned_email']) || $this->request->post['assigned_email'] == '') {
|
||||
$this->error['assigned_email'] = $this->data['text_missing_data'];
|
||||
}
|
||||
|
||||
if(!isset($this->request->post['id']) || !is_numeric($this->request->post['id']) || (int)$this->request->post['id'] < 0) {
|
||||
$this->error['id'] = $this->data['text_invalid_data'];
|
||||
}
|
||||
|
Reference in New Issue
Block a user