@@ 91-95 (lines=5) @@ | ||
88 | $this->lib_admin->log(lang('Field created', 'cfcm') . ' - field_' . $this->input->post('field_name')); |
|
89 | showMessage(lang('Field created', 'cfcm')); |
|
90 | ||
91 | if ($this->input->post('action') === 'close') { |
|
92 | pjax($this->get_url()); |
|
93 | } else { |
|
94 | pjax($this->get_url('edit_field/' . $data['field_name'])); |
|
95 | } |
|
96 | exit; |
|
97 | } |
|
98 | } else { |
|
@@ 362-366 (lines=5) @@ | ||
359 | $this->lib_admin->log(lang('Group has been updated', 'cfcm') . '. Id: ' . $id); |
|
360 | ||
361 | showMessage(lang('Group has been updated', 'cfcm')); |
|
362 | if ('close' === $this->input->post('action')) { |
|
363 | pjax($this->get_url('index#fields_groups')); |
|
364 | } else { |
|
365 | pjax($this->get_url('edit_group/' . $id)); |
|
366 | } |
|
367 | exit; |
|
368 | } else { |
|
369 | showMessage($form->_validation_errors(), false, 'r'); |