snipe
ef8c1abf28
Fixes #3113 and #4040
2017-09-27 14:50:17 -07:00
snipe
bd0498aa69
Fixes #4016 - signature file missing from history tab
2017-09-27 12:58:08 -07:00
snipe
e27e1a78c3
Fix for case where a fieldset is assigned to a model, but no fields are assigned
2017-09-26 16:01:23 -07:00
snipe
4b9bfc178d
One more try on #4001
2017-09-25 22:05:57 -07:00
snipe
f2ee7dcabb
Fixes #4001 - license checkout not working
2017-09-25 21:40:43 -07:00
snipe
26203801f6
Fixes #4009 - zip not populating on locations listing page
2017-09-25 20:45:05 -07:00
snipe
c3afbc0e53
Run backups before purging and importing
2017-09-25 15:00:23 -07:00
snipe
38326314ca
Merge branch 'develop'
2017-09-25 11:53:33 -07:00
snipe
865950e766
Fixes #4000 - user_id blank
2017-09-25 11:53:10 -07:00
snipe
d49b67d033
Fix for assigned user location
...
Was breaking requestable page
2017-09-25 11:26:04 -07:00
snipe
6b63808e34
Fix for asset location null on user
2017-09-25 11:25:15 -07:00
snipe
34dfcb5add
Merge branch 'develop'
2017-09-22 17:23:38 -07:00
snipe
30019a144a
Disable login note editing on demo
2017-09-22 17:23:22 -07:00
snipe
b29d7beb3a
Merge branch 'develop'
...
# Conflicts:
# .gitignore
# Dockerfile
# README.md
# app/Http/Controllers/AccessoriesController.php
# app/Http/Controllers/AssetMaintenancesController.php
# app/Http/Controllers/AssetsController.php
# app/Http/Controllers/ConsumablesController.php
# app/Http/Controllers/GroupsController.php
# app/Http/Controllers/LicensesController.php
# app/Http/Controllers/ReportsController.php
# app/Http/Controllers/UsersController.php
# app/Http/routes.php
# app/Models/Depreciation.php
# app/Models/Location.php
# config/version.php
# resources/views/account/view-assets.blade.php
# resources/views/hardware/edit.blade.php
# resources/views/hardware/view.blade.php
# resources/views/partials/modals.blade.php
# resources/views/reports/custom.blade.php
# snipeit.sh
2017-09-22 16:12:18 -07:00
snipe
998c4a5fe5
Make model number nullable
2017-09-22 04:43:28 -07:00
snipe
126a5671fe
Set timeout for LDAP server
2017-09-18 19:11:38 -07:00
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
Daniel Meltzer
922d6937ae
Custom field import repair ( #3968 )
...
* There is no notes field on accessories. Fixes Importer Test.
* Fix notification test. We should see a checkout not allowed exception when trying to check out to a location if the asset requires acceptance.
* Fix Custom field import.
Add a test for custom field import, and fix a few issues related to
importing custom fields. This will restore v3 functionality.
* Add UI support for mapping custom fields.
This still requires the field mappings to be created/assigned in
advance, but will fetch all custom field names and allow them to be
selected when setting up custom field mappings.
This commit also updates laravel-mix to v1.4.3 and other node
dependencies to fix some build issues.
* Fix some requestable asset page/assetloc issues. I'd love to know why laravel expections relationships to be in lower case... but thats a question for another day.
2017-09-18 12:29:08 -07:00
snipe
c53dae4b72
Possible fix for #3919 - allow later versions of mcrypted base64 keys
2017-09-14 16:43:41 -07:00
Iman
ed4ea7f1f4
No new feature,No bug fix, Only refactoring ( #3949 )
...
* No change in logic !
Just exchanging the if and else code blocks and negating condition.
* remove unneeded else{} block
* Re-indented the code
2017-09-12 12:28:42 -07:00
snipe
81e358a01d
Small maintenance fixes
2017-09-08 17:49:01 -07:00
snipe
6c283de60a
Check for status_id key - related to #3928
...
TODO: Fix for model number
2017-09-08 17:24:28 -07:00
snipe
47909b93f7
Fixed deleted users/restore users view
2017-09-06 17:11:43 -07:00
Daniel Meltzer
ae0573b3da
Fix asset create ( #3929 )
...
* Fix accidental commit of ImporterTest.
* Move the name() method to the presenter
This fixes some weird collisions between laravels voodoo and our
presenter voodoo that confused php. It's also probably a cleaner place
to put it. Should fix #3927
* Add missing parenthesis
* Add heading to tables on locations/view page.
2017-09-06 16:24:43 -07:00
Daniel Meltzer
987536930c
Assorted fixes ( #3923 )
...
* Fix some n+1 problems
* Use route in notification dropdown to make sure we link to correct page
* Work on better UI support for checkout to non-user. Fix links on index bootstrap table, work towards eliminating assignedUser
* Remove Asset::assigneduser() relationship. Instead add a checkedOutToUser() method and/or port to using assignedTo()
* Adjust string to fit new reality
* Fix #3780 . Move the consumables getDataView method to the ApiController. Not entirely RESTful, but it's a weird method that probably doesn't need its own controller and the functionality would be strange to stack on the userscontroller...
* Fix file uploads to assets and restore the delete route.
* Add asset maintence edit action to index.
* Suppliers asset list should link to the related asset, not to the supplier with same ID.
* Asset models page should use polymorphic formatter on assigned to to better handle assorted item types.
* Comment out more assigneduser fallacy until we figure out the query builder approach to searching for location text.
2017-09-05 17:54:58 -07:00
snipe
761371509d
Use notifiables for slack audit notification
2017-08-31 21:30:38 -07:00
snipe
3518ea7e7d
Fixes #606 - email notifications for expected checkins
2017-08-31 21:18:05 -07:00
snipe
0054ce3071
Fixes #3907
2017-08-31 13:45:48 -07:00
snipe
b0f74466bb
Removed dd
2017-08-31 11:15:52 -07:00
snipe
b4a0484295
Merge branch 'develop' of github.com:snipe/snipe-it into develop
2017-08-31 11:15:03 -07:00
Daniel Meltzer
bb874012d9
Progress towards better email notifications ( #3911 )
...
Working mail from notification. Still requires testing/cleaning
Add tests around checkout notification.
This also removes the ability to check out an asset to a location|asset
that requires acceptance/a Eula. For 4.1 we may think about how to
support such a thing, but at present it seems to make sense to only alow
such assets to be checked out to users, who can be responsible for the
items.
2017-08-31 11:14:21 -07:00
snipe
bb8583eb14
Remove lower casing for LDAP array re: #3910
2017-08-31 11:00:08 -07:00
snipe
8d2c229bc3
Move LDAP validation into form request
2017-08-31 10:44:00 -07:00
snipe
48e6208214
Fixes #3907 - do not require username on user if LDAP import
2017-08-31 10:43:36 -07:00
snipe
22233e3ba6
Bulk asset audit form (needs more testing)
2017-08-29 16:00:22 -07:00
snipe
e439f15a64
Fixed some date math for auditing
2017-08-28 17:20:20 -07:00
snipe
e10cdd57a5
Removed old getassetloist method
2017-08-26 15:22:04 -07:00
snipe
bf157773c8
Also related to #3888
2017-08-26 15:21:38 -07:00
snipe
51d74ac06d
Auduting improvements
2017-08-25 18:40:20 -07:00
snipe
af835d6efc
Additional setting validation for new fields
2017-08-25 17:59:01 -07:00
snipe
16f57e16cb
Fixes #1190 - added basic audit workflow
2017-08-25 10:04:19 -07:00
snipe
52270fa4db
Derp
2017-08-25 08:30:48 -07:00
snipe
bf3731d65c
Set default min password to 10
2017-08-25 08:23:23 -07:00
snipe
19670f9dd8
Remove assigned_to constraint
2017-08-25 06:30:10 -07:00
snipe
4721cab928
Grr.
2017-08-25 06:08:19 -07:00
snipe
08f3e78d26
Merge branch 'checkout-to-location-v2' of https://github.com/dmeltzer/snipe-it into dmeltzer-checkout-to-location-v2
...
# Conflicts:
# app/Http/Controllers/Api/UsersController.php
# app/Http/Transformers/LocationsTransformer.php
# resources/views/locations/view.blade.php
# routes/api.php
# tests/_data/dump.sql
2017-08-25 06:04:22 -07:00
snipe
10711245ba
Fixes #3792 - parent/child locations in API
2017-08-25 05:32:12 -07:00
snipe
29a7c8577d
Fixes #3849 - fillable for accessories
2017-08-25 03:48:07 -07:00
snipe
021e723acf
Fixed typo
2017-08-25 03:27:41 -07:00
snipe
14c0c314aa
Make sure payload is always passed, even if null
2017-08-25 03:27:31 -07:00
snipe
d23ea70b08
Added auth check back to asset store
2017-08-25 03:26:50 -07:00
snipe
1b047c768b
Added fullName() presenter for locations
2017-08-25 03:26:10 -07:00
snipe
73ce5f98bb
Removed some logging to make test debugging less verbose
2017-08-24 23:20:51 -07:00
snipe
659d953f3f
Fixed custom error message for status labels
2017-08-24 22:40:07 -07:00
Brady Wetherington
c1dcc22217
Refactor and improve Modal support for Assets ( #3884 )
2017-08-24 22:24:02 -07:00
snipe
4ba474cf73
Fixes asset test
2017-08-24 16:52:27 -07:00
snipe
fb6caa35ff
Only increment if settings table has a value
...
(This should only ever come up in the CI tests)
2017-08-23 14:07:01 -07:00
snipe
a5870c888e
Removed incrementer from non-asset event listeners
2017-08-23 13:59:59 -07:00
snipe
6e30fa6922
Fixes custom fields in asset listing where no custom fields were assigned
2017-08-23 03:28:13 -07:00
snipe
58b3f0519d
Add empty errors array
2017-08-23 00:31:37 -07:00
snipe
f119c69698
Possible fix for #3852
2017-08-22 22:46:02 -07:00
snipe
57f4c986af
Enforce password complexity rules on new account password change
2017-08-22 22:41:35 -07:00
snipe
06c5bce3c7
Fixes #3865 - employee number mislabeled in list output
2017-08-22 21:40:35 -07:00
snipe
a0cbca85bf
Fixes for API calls for password complexity stuff
2017-08-22 21:15:35 -07:00
snipe
9bda62d295
ADDED: Password rules for complexity, min length, rejecting common passwords
2017-08-22 20:32:39 -07:00
snipe
1d7e243d0a
Fixes #3790 - parent display on locations index
2017-08-22 15:02:31 -07:00
snipe
63bc2ec09f
Fixes #3802 - make id an (int) in API repsonse
2017-08-22 14:53:48 -07:00
snipe
d5cadeab1a
Fixes #3854 - more fillable fields for supplier API
2017-08-22 14:30:39 -07:00
snipe
31516abef9
Fixes #3858 - use transformer for single listing categories
2017-08-22 14:26:08 -07:00
snipe
d2535582f3
Fixes #3853 - added notes/zip to suppliers API response
2017-08-22 14:18:21 -07:00
snipe
eaaea303f4
Fixes #3860 - return JSON instead of redirect in API delete dept call
2017-08-22 14:15:13 -07:00
snipe
8c5312b931
Fixes #3866 - weird API behavior in status label types
2017-08-22 14:10:54 -07:00
snipe
4ef6e292d1
Fixes #3868 - model_number/notes in models API call
2017-08-22 13:56:51 -07:00
snipe
6310670835
Fixes #3869 - asset maintenances API endpoints
2017-08-22 13:52:06 -07:00
snipe
148d41d8dc
Removes erroneous else
2017-08-22 12:22:32 -07:00
snipe
71c1c74164
Fixes #3085 - adds “change password” functionality back to user accounts
2017-08-22 12:09:04 -07:00
snipe
9c02526a37
Make fields nullable in settings
2017-08-22 10:41:59 -07:00
snipe
6a73ec6537
First stab at a recrypter for legacy mcrypt conversion
2017-08-21 22:30:56 -07:00
snipe
4576cb6f56
Merge branch 'develop' of github.com:snipe/snipe-it into develop
2017-08-10 14:38:08 -07:00
snipe
56f88d2c22
Fixes #3836 - Adds supplier to licenses column
2017-08-10 14:38:04 -07:00
gibsonjoshua55
c1d1cb8122
Address #3840 and fixes group transformation in UsersTransformer ( #3841 )
...
Removes the incorrect variable access in UsersTransformer of a users's
groups and adds an array of groups' ids and names to the return array.
2017-08-10 13:37:54 -07:00
snipe
de18e2a887
Only bcrypt passwords on user save if the password value is passed
2017-08-08 14:41:58 -07:00
snipe
7da4fe4524
Fixes #3825 - allows fillables through location API
2017-08-08 12:36:28 -07:00
snipe
9bfd345774
Use Company transformer with payload
2017-08-03 19:55:08 -07:00
snipe
df87c82ddc
Fixes #3805 - add/update/delete methods for User API
2017-08-03 19:50:18 -07:00
snipe
3e8b7d9c94
Check for overall asset delete permissions before checking to see if the user can delete that specific asset
2017-08-03 19:49:41 -07:00
Jason Spriggs
7c4ee54f8b
Fix #3803 - Return asset object instead of just id ( #3811 )
2017-08-01 20:01:11 -07:00
snipe
03f9d01aab
Fixes #3775 - added missing created_at and updated_at fields
2017-07-29 17:01:03 -07:00
snipe
5b420fb4b9
Fixes #3779 - corrects presenter used for Consumables
2017-07-29 16:44:51 -07:00
snipe
a2d63dd3e4
Fixes #3776 - adds Company to Dept UI
2017-07-29 16:42:17 -07:00
snipe
0408509fdc
Fixes #3777 - correct response for two_factor_actived for user API
2017-07-29 16:25:42 -07:00
snipe
5e47c18d68
Fixes #3786 - checkin/checkout to components UI
2017-07-29 16:13:17 -07:00
snipe
4e5cf531f7
Fixes #3799 - use transformers on show() method as well
2017-07-29 15:46:10 -07:00
snipe
ccb7556281
Fixes javascript error when custom fields exist but do not belong to any fieldsets or models
2017-07-26 17:06:58 -07:00
snipe
ee7348d0d5
Better fix for javascript formatter for employee number
2017-07-26 16:47:47 -07:00
snipe
7d6bf4ac24
Fixes stupid javascript for employee_number
2017-07-26 16:26:47 -07:00
snipe
cb903ab9fd
Fixes manager user->name to username in Users API
2017-07-26 08:51:16 -07:00
snipe
66d8308163
More compact payload for users API on location and manager
2017-07-26 08:47:54 -07:00
snipe
847262e989
Fixes #3774 - fixes for inconsistent API responses (‘’ vs null) and adds escaping
2017-07-25 23:40:30 -07:00
snipe
59006964d1
Fixes #3771 - adds username to API response on Asset API
2017-07-25 22:11:50 -07:00