snipe-it/app
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
..
Console Use getReader instead of fetchAssoc for CSV parser 2019-05-23 19:09:58 -07:00
Events Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
Exceptions Handle JSON validation errors like 5.4 2019-05-24 00:46:30 -07:00
Helpers Updated withCount to use manual naming 2019-05-22 00:52:51 -07:00
Http Trying to fix ajax asset validation 2019-05-24 03:55:31 -07:00
Importer Use getReader instead of fetchAssoc for CSV parser 2019-05-23 19:09:58 -07:00
Jobs Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
LegacyEncrypter First stab at a recrypter for legacy mcrypt conversion 2017-08-21 22:30:56 -07:00
Listeners Fixed typo 2018-07-17 01:03:32 -07:00
Models Fixed #7046 - added user website url back into UI 2019-05-21 18:55:12 -07:00
Notifications Fixes #6204 - added email alerts and web/API access to assets due for audits (#6992) 2019-05-05 22:32:52 -04:00
Observers Fixed #4652 - asset not correctly checking out to user on creation 2018-01-17 12:10:28 -08:00
Policies Fixed #6956 - viewKeys policy inconsistent (#7009) 2019-05-08 08:14:49 -04:00
Presenters Fixed #7003 - crash when warranty months or purchase date is null 2019-05-07 15:33:57 -04:00
Providers Fixes/import permissions mask (#6826) 2019-03-18 11:58:08 -07:00