Ignore:
Timestamp:
10/25/21 12:47:27 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
bdda09f
Parents:
b6e0879
Message:

bug fixes

Location:
app/Http/Controllers/Dashboard
Files:
2 edited

Legend:

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

    rb6e0879 r233e950  
    144144        }
    145145        catch(\Exception $e){
    146             abort(403, "No files found");
    147             //Alert::flash(" deleted successfully");
    148             //return redirect()->route("dashboard.departments.index");
     146            //abort(403, "No files found");
     147            Alert::flash("All departments are empty", "warning");
     148            return redirect()->back();
    149149    }
    150150    }
     
    176176        }
    177177        catch(\Exception $e){
    178             abort(403, "No files found");
     178            //abort(403, "No files found");
     179            Alert::flash("This department has no files", "warning");
     180            return redirect()->back();
    179181        }
    180182    }
  • app/Http/Controllers/Dashboard/FoldersController.php

    rb6e0879 r233e950  
    303303        }
    304304        catch (\Exception $e) {
    305             abort(403, "No files found");
     305            //abort(403, "No files found");
     306            Alert::flash("This folder has no files", "warning");
     307            return redirect()->back();
    306308        }
    307309    }
Note: See TracChangeset for help on using the changeset viewer.