@@ -111,7 +111,8 @@ |
||
111 | 111 | |
112 | 112 | // Determine if there is a parent site with shared files |
113 | 113 | $parent = Customers::find($id)->parent_id; |
114 | - if ($parent) { |
|
114 | + if ($parent) |
|
115 | + { |
|
115 | 116 | $parentList = Customerfiles::where('cust_id', $parent) |
116 | 117 | ->where('shared', 1) |
117 | 118 | ->with('Files') |
@@ -29,7 +29,8 @@ discard block |
||
29 | 29 | |
30 | 30 | // Determine if the note should go to the customer, or its parent |
31 | 31 | $details = Customers::find($request->cust_id); |
32 | - if ($details->parent_id && $request->shared == 'true') { |
|
32 | + if ($details->parent_id && $request->shared == 'true') |
|
33 | + { |
|
33 | 34 | $request->cust_id = $details->parent_id; |
34 | 35 | } |
35 | 36 | |
@@ -55,7 +56,8 @@ discard block |
||
55 | 56 | |
56 | 57 | // Determine if there is a parent site with shared contacts |
57 | 58 | $parent = Customers::find($id)->parent_id; |
58 | - if ($parent) { |
|
59 | + if ($parent) |
|
60 | + { |
|
59 | 61 | $parentList = CustomerNotes::where('cust_id', $parent)->where('shared', 1)->orderBy('urgent', 'desc')->get(); |
60 | 62 | |
61 | 63 | $notes = $notes->merge($parentList); |