@@ 167-170 (lines=4) @@ | ||
164 | $this->form_validation->set_rules('menu_id', 'Menu Id', 'required'); |
|
165 | $this->form_validation->set_rules('item_type', 'Item Type', 'required'); |
|
166 | $this->form_validation->set_rules('title', lang('Title', 'menu'), 'required'); |
|
167 | if ($this->input->post('item_type') == 'page') { |
|
168 | //$this->form_validation->set_rules('title', 'Заголовок', 'required'); |
|
169 | $this->form_validation->set_rules('item_id', lang('Page ID', 'menu'), 'required'); |
|
170 | } |
|
171 | if ($this->input->post('item_type') == 'category') { |
|
172 | $this->form_validation->set_rules('item_id', lang('category ID', 'menu'), 'required'); |
|
173 | } |
|
@@ 171-173 (lines=3) @@ | ||
168 | //$this->form_validation->set_rules('title', 'Заголовок', 'required'); |
|
169 | $this->form_validation->set_rules('item_id', lang('Page ID', 'menu'), 'required'); |
|
170 | } |
|
171 | if ($this->input->post('item_type') == 'category') { |
|
172 | $this->form_validation->set_rules('item_id', lang('category ID', 'menu'), 'required'); |
|
173 | } |
|
174 | if ($this->input->post('item_type') == 'module') { |
|
175 | $this->form_validation->set_rules('mod_name', lang('Module name', 'menu'), 'required'); |
|
176 | //$this->form_validation->set_rules('mod_method', 'Метод модуля', 'required'); |