Ignore:
Timestamp:
10/24/21 23:23:54 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
df6e9ec
Parents:
fa80fbe
Message:

bug fixes

File:
1 edited

Legend:

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

    rfa80fbe r94f05dc  
    4141                        $arch_id = $this->request->get('arch_id');
    4242
    43                         $deptId = explode('/', $arch_id)[0];
     43                        $deptCode = explode('/', $arch_id)[0];
    4444                        $archNum = explode('/', $arch_id)[1];
    4545
     
    4848                        }
    4949
    50                         if ($deptId !== Department::find($this->request->get('department'))->code) {
     50                        if ($deptCode != Department::find($this->request->get('department'))->code) {
    5151                            $fail("Folder Archive ID field format is invalid");
    5252                        }
    53                     } catch (\Exception $e) {
     53                    }
     54                    catch (\Exception $e) {
    5455                        $fail("Please enter folders Archive ID");
    5556                    }
Note: See TracChangeset for help on using the changeset viewer.