Changeset 1451c6f for app


Ignore:
Timestamp:
10/31/21 22:35:15 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
master
Children:
190db9f
Parents:
8fdb18e
Message:

bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/Http/Controllers/Dashboard/DepartmentsController.php

    r8fdb18e r1451c6f  
    7777        {
    7878            $location = 'Departments' . DIRECTORY_SEPARATOR . $request->code;
    79             if(!Storage::disk('local')->has($location)){
     79
     80            if(!Storage::disk('local')->has($location) && Folder::where('department_id', $department->id)->pluck('no_of_files')->first() > 0){
    8081                Storage::disk('local')->move($oldLocation, $location);
    8182                $department->location = $location;
Note: See TracChangeset for help on using the changeset viewer.