Ignore:
Timestamp:
10/23/21 04:03:46 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
b39afb5
Parents:
c6b84df
Message:

bug fixes, edited export, added fileSeeder for DB testing

File:
1 edited

Legend:

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

    rc6b84df r4b7e2d3  
    147147        if(!$flag) {
    148148            $zip->close();
    149             $headers = array('Content-Type' => 'application/octet-stream',);
     149            $headers = array('Content-Type' => 'application/octet-stream');
    150150            $zip_new_name = Carbon::now()->format('d.m.Y - H:i') . '- Departments.zip';
    151151            return response()->download($zip_file, $zip_new_name, $headers);
     
    153153        else {
    154154            Alert::flash("All departments are empty", "warning");
    155             return redirect()->route("dashboard.departments.index");
     155            return redirect()->back();
    156156        }
    157157    }
     
    186186        else{
    187187            Alert::flash("This department has no files", "warning");
    188             return redirect()->route("dashboard.departments.index");
     188            return redirect()->back();
    189189        }
    190190
Note: See TracChangeset for help on using the changeset viewer.