|
@@ 163-170 (lines=8) @@
|
| 160 |
|
} |
| 161 |
|
|
| 162 |
|
// Validate the Pack |
| 163 |
|
if (! isset($data['pack_id']) || (int) $data['pack_id'] < 1) { |
| 164 |
|
$data['pack_id'] = null; |
| 165 |
|
} else { |
| 166 |
|
$pack = Models\Pack::where('id', $data['pack_id'])->where('option_id', $data['option_id'])->first(); |
| 167 |
|
if (! $pack) { |
| 168 |
|
throw new DisplayException('The requested service pack does not seem to exist for this combination.'); |
| 169 |
|
} |
| 170 |
|
} |
| 171 |
|
|
| 172 |
|
// Load up the Service Information |
| 173 |
|
$service = Models\Service::find($option->service_id); |
|
@@ 780-787 (lines=8) @@
|
| 777 |
|
} |
| 778 |
|
|
| 779 |
|
// Validate the Pack |
| 780 |
|
if (! isset($data['pack_id']) || (int) $data['pack_id'] < 1) { |
| 781 |
|
$data['pack_id'] = null; |
| 782 |
|
} else { |
| 783 |
|
$pack = Models\Pack::where('id', $data['pack_id'])->where('option_id', $data['option_id'])->first(); |
| 784 |
|
if (! $pack) { |
| 785 |
|
throw new DisplayException('The requested service pack does not seem to exist for this combination.'); |
| 786 |
|
} |
| 787 |
|
} |
| 788 |
|
|
| 789 |
|
return DB::transaction(function () use ($admin, $data, $server) { |
| 790 |
|
$server->installed = 0; |