Merge remote-tracking branch 'upstream/master' into address-delete-issue
This commit is contained in:
commit
e44a73af10
|
|
@ -91,7 +91,9 @@ class CoreConfigRepository extends Repository
|
|||
]);
|
||||
} else {
|
||||
foreach ($coreConfigValue as $coreConfig) {
|
||||
Storage::delete($coreConfig['value']);
|
||||
if (request()->hasFile($fieldName)) {
|
||||
Storage::delete($coreConfig['value']);
|
||||
}
|
||||
|
||||
if (isset($value['delete'])) {
|
||||
$this->model->destroy($coreConfig['id']);
|
||||
|
|
|
|||
|
|
@ -140,6 +140,10 @@ trait ProvideCollection
|
|||
*/
|
||||
private function sortCollection($collection, $info)
|
||||
{
|
||||
$availableOptions = ['asc', 'desc'];
|
||||
|
||||
$selectedSortOption = strtolower(array_values($info)[0]);
|
||||
|
||||
$countKeys = count(array_keys($info));
|
||||
|
||||
if ($countKeys > 1) {
|
||||
|
|
@ -150,7 +154,7 @@ trait ProvideCollection
|
|||
|
||||
$collection->orderBy(
|
||||
$columnName[1],
|
||||
array_values($info)[0]
|
||||
in_array($selectedSortOption, $availableOptions) ? $selectedSortOption : 'asc'
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
@endsection
|
||||
|
||||
@section('content-wrapper')
|
||||
<div class="cms-page-container cart-details row offset-1">
|
||||
<div class="cms-page-container cart-details row">
|
||||
{!! DbView::make($page)->field('html_content')->render() !!}
|
||||
</div>
|
||||
@endsection
|
||||
Loading…
Reference in New Issue