snipe-it/app/Models
Daniel Meltzer a5764351f7 Migrate weird assigned_type issues, Issue #3972 (#3973)
For a while, prior to 987536930, we did not null assigned_type on
checkin.  This migration manually nulls all assigned_type fields if
assigned_to is unset.  Add a test to AssetTest for this as well...kind
of.  We need to extract an Asset::checkin() method for 4.1 that mirrors
Asset::checkOut() to really test this.

This also fixes a separate (but related) issue.  The Asset importer did
not set assigned_type when importing and creating users.  In this
instance, we assume that if assigned_to is set and assigned_type is not,
then the item was checked out to a user and update the DB accordingly.
Also add a check in ImporterTest for this issue.
2017-09-18 16:40:13 -07:00
..
Accessory.php Custom field import repair (#3968) 2017-09-18 12:29:08 -07:00
Actionlog.php Bulk asset audit form (needs more testing) 2017-08-29 16:00:22 -07:00
Asset.php Migrate weird assigned_type issues, Issue #3972 (#3973) 2017-09-18 16:40:13 -07:00
AssetMaintenance.php
AssetModel.php Fixes #3868 - model_number/notes in models API call 2017-08-22 13:56:51 -07:00
Category.php Vue importer (#3235) 2017-01-25 21:29:23 -08:00
CheckoutRequest.php
Company.php
CompanyableChildScope.php
CompanyableChildTrait.php
CompanyableScope.php
CompanyableTrait.php
Component.php
Consumable.php Assorted fixes (#3923) 2017-09-05 17:54:58 -07:00
ConsumableAssignment.php
CustomField.php Removed some logging to make test debugging less verbose 2017-08-24 23:20:51 -07:00
CustomFieldset.php Added model validation to custom fieldsets 2017-07-12 19:34:45 -07:00
Department.php Allow manager to be null for dept 2017-05-23 02:49:00 -07:00
Depreciable.php
Depreciation.php Fixed Illuminate path 2017-02-22 22:20:57 -08:00
Group.php
ICompanyableChild.php
Import.php Importer mapping - v1 (#3677) 2017-06-21 16:37:37 -07:00
Ldap.php Remove lower casing for LDAP array re: #3910 2017-08-31 11:00:08 -07:00
License.php Fixes #3836 - Adds supplier to licenses column 2017-08-10 14:38:04 -07:00
LicenseSeat.php
Location.php Merge branch 'checkout-to-location-v2' of https://github.com/dmeltzer/snipe-it into dmeltzer-checkout-to-location-v2 2017-08-25 06:04:22 -07:00
Loggable.php Use notifiables for slack audit notification 2017-08-31 21:30:38 -07:00
Manufacturer.php Fixes #3311 - more fields for manufacturers 2017-03-10 22:08:59 -08:00
Requestable.php Assorted fixes (#3923) 2017-09-05 17:54:58 -07:00
Setting.php Move LDAP validation into form request 2017-08-31 10:44:00 -07:00
SnipeModel.php Fix asset create (#3929) 2017-09-06 16:24:43 -07:00
Statuslabel.php More bootstrap tables formatting 2017-01-24 22:25:17 -08:00
Supplier.php Fixes #3854 - more fillable fields for supplier API 2017-08-22 14:30:39 -07:00
Throttle.php
User.php Merge branch 'checkout-to-location-v2' of https://github.com/dmeltzer/snipe-it into dmeltzer-checkout-to-location-v2 2017-08-25 06:04:22 -07:00