Ignore:
Timestamp:
10/18/21 23:00:23 (3 years ago)
Author:
Berat Kjufliju <kufliju@…>
Branches:
develop, master
Children:
ea7b12a
Parents:
e6c1f87
Message:

edited file upload, seeding and departments controller

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/Http/Requests/Dashboard/DocumentRequest.php

    re6c1f87 rb9c4a92  
    3636            "arch_id" => [
    3737                "required",
    38                 function($attribute, $value, $fail) {
     38                function ($attribute, $value, $fail) {
    3939                    $arch_id = $this->request->get('arch_id');
    4040                    $deptId = explode('/', $arch_id)[0];
     41                    $archNum = explode('/', $arch_id)[1];
     42
     43                    if (empty($archNum)) {
     44                        $fail("Please enter documents Archive ID");
     45                    }
     46
    4147                    if ($deptId !== Department::find($this->request->get('department'))->code) {
    4248                        $fail("Document Archive ID field format is invalid");
Note: See TracChangeset for help on using the changeset viewer.