@@ 159-166 (lines=8) @@ | ||
156 | ||
157 | switch ($this->input->post('redirect_type')) { |
|
158 | ||
159 | case 'url': |
|
160 | $array = [ |
|
161 | 'trash_url' => ltrim($this->input->post('url'), '/'), |
|
162 | 'trash_redirect_type' => $this->input->post('redirect_type'), |
|
163 | 'trash_type' => $this->input->post('type'), |
|
164 | 'trash_redirect' => $this->input->post('redirect_url'), |
|
165 | ]; |
|
166 | break; |
|
167 | ||
168 | case 'product': |
|
169 | $route = RouteQuery::create() |
|
@@ 267-275 (lines=9) @@ | ||
264 | ||
265 | if ($this->input->post()) { |
|
266 | switch ($this->input->post('redirect_type')) { |
|
267 | case 'url': |
|
268 | $array = [ |
|
269 | 'id' => $this->input->post('id'), |
|
270 | 'trash_url' => $this->input->post('old_url'), |
|
271 | 'trash_redirect_type' => $this->input->post('redirect_type'), |
|
272 | 'trash_type' => $this->input->post('type'), |
|
273 | 'trash_redirect' => $this->input->post('redirect_url'), |
|
274 | ]; |
|
275 | break; |
|
276 | ||
277 | case 'product': |
|
278 | $route = RouteQuery::create() |