Merge pull request #5134 from devansh-webkul/multiple-custom-script-issue
Fixed error in Admin -> Configuration after added custom scripts #5113
This commit is contained in:
commit
9a0172d133
|
|
@ -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']);
|
||||
|
|
|
|||
Loading…
Reference in New Issue