Conditions | 3 |
Paths | 3 |
Total Lines | 20 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
35 | public function updateNote($request, $custID, $noteID) |
||
36 | { |
||
37 | if($request->shared) |
||
38 | { |
||
39 | $parent = $this->getParentID($custID); |
||
40 | if($parent) |
||
41 | { |
||
42 | $custID = $parent; |
||
43 | } |
||
44 | } |
||
45 | |||
46 | CustomerNotes::find($noteID)->update([ |
||
47 | 'cust_id' => $custID, |
||
48 | 'shared' => $request->shared, |
||
49 | 'urgent' => $request->urgent, |
||
50 | 'subject' => $request->subject, |
||
51 | 'description' => $request->description, |
||
52 | ]); |
||
53 | |||
54 | return true; |
||
55 | } |
||
63 |