Conditions | 4 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | protected function prepareRequestToBeCopied(Request $request) |
||
34 | { |
||
35 | $remove = []; |
||
36 | if ($request->method() === 'POST' && $request->input('next_action') === 'save_and_create') { |
||
37 | if (! $this->copyAfterSave) { |
||
38 | $remove[] = $this->relationName; |
||
39 | } |
||
40 | $this->makeCopyOfRelations($request); |
||
41 | } |
||
42 | |||
43 | return $request->replace($request->except($remove)); |
||
44 | } |
||
66 |