snipe-it/app/Http
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
..
Controllers Use getReader instead of fetchAssoc for CSV parser 2019-05-23 19:09:58 -07:00
Middleware Set the serialization 2019-05-22 00:51:43 -07:00
Requests Trying to fix ajax asset validation 2019-05-24 03:55:31 -07:00
Traits Fix tests 2018-07-09 21:57:45 -07:00
Transformers Fixed #7046 - added user website url back into UI 2019-05-21 18:55:12 -07:00
Kernel.php Fixed #6113 - use $asset->fill vs filled() to allow blanking values via API (#6693) 2019-02-12 22:08:38 -08:00