snipe-it/app/Http/Requests
snipe 5be5e3271d Trying to fix ajax asset validation
This I think gets us closer, but still not handling the validation on the asset properly.

When I do a print_r of the validation in the other items, its looking for an error bag that looks something like this:

```
Illuminate\Support\MessageBag Object
(
    [messages:protected] => Array
        (
            [name] => Array
                (
                    [0] => The name field is required.
                )

            [seats] => Array
                (
                    [0] => The seats field is required.
                )

            [category_id] => Array
                (
                    [0] => The category id field is required.
                )

        )

    [format:protected] => :message
)
```

Currently the Assets ajax returns:

```
[2019-05-24 06:52:06] develop.ERROR: array (
  'messages' =>
  array (
    'model_id' =>
    array (
      0 => 'The model id field is required.',
    ),
    'status_id' =>
    array (
      0 => 'The status id field is required.',
    ),
    'asset_tag' =>
    array (
      0 => 'The asset tag field is required.',
    ),
  ),
)
```

So not sure why it’s not working.
2019-05-24 03:55:31 -07:00
..
AssetCheckinRequest.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
AssetCheckoutRequest.php Validate checkout_to_type on asset checkout 2017-11-27 21:20:12 -08:00
AssetFileRequest.php Fixes #5859 - add file name/size to file upload UI (#5861) 2018-07-16 20:09:53 -07:00
AssetRequest.php Trying to fix ajax asset validation 2019-05-24 03:55:31 -07:00
CustomFieldRequest.php Fixed - name should always be required in custom fields 2017-11-06 20:05:40 -08:00
ImageUploadRequest.php Removed max cap in image validation 2018-04-24 03:12:17 -07:00
ItemImportRequest.php Check for empty headers in import 2019-03-14 15:38:07 -07:00
Request.php Added better form request handling 2017-01-12 02:20:20 -08:00
SaveUserRequest.php Fixed #6703 - fixes password confirmation (#6711) 2019-02-13 23:01:19 -08:00
SettingsLdapRequest.php Move LDAP validation into form request 2017-08-31 10:44:00 -07:00
SetupUserRequest.php Fixed #6703 - fixes password confirmation (#6711) 2019-02-13 23:01:19 -08:00