snipe
44821b9667
Fixes #2404 Only update name of asset if it isn't null.
2016-08-16 18:23:20 -07:00
Daniel Meltzer
7ef4f23d0f
Validate that purchase_cost is a numeric value. ( #2452 )
2016-08-16 18:18:50 -07:00
Daniel Meltzer
a852c624d3
Fix 2347 ( #2394 )
...
* Prevent multiple checkouts of the same asset.
This adds a new method to the Asset model, availableForCheckout.
Port getDataTable to use availableForCheckout instead of doing the
check manually.
Fixes Issue #2347
* Use availableForCheckout in categories controller. Also gate the checkin/checkout actions here.
* Use gate and availableForCheckout in manufactuers as well.
2016-08-16 13:02:42 -07:00
snipe
7edf1db101
Small tweaks to history
2016-08-12 19:03:32 -07:00
snipe
41a20d8f66
Tidied up some debugging code, better explanation
2016-08-12 17:10:03 -07:00
snipe
4a9f3fd6ff
Generate email method
2016-08-12 16:02:39 -07:00
snipe
9ae1841fc4
Make additional fields fillable
2016-08-12 16:02:18 -07:00
snipe
ba5a2edd54
CSV history routes
2016-08-12 16:02:09 -07:00
snipe
c73cbccffc
Method to import CSV history
2016-08-12 16:01:59 -07:00
snipe
24d2726c86
Added helper for imports
2016-08-12 16:01:45 -07:00
snipe
18e576e5fd
Merge branch 'develop' of github.com:snipe/snipe-it into develop
2016-08-11 22:03:25 -07:00
snipe
4c787891e4
Use custom maintenance middleware
2016-08-11 19:22:26 -07:00
Daniel Meltzer
dbd96a4c10
Don't try to format a formatted number string. ( #2396 )
...
The importer already formatted/parsed numbers on input into the db
(maybe it shouldn't have?) so running number_format on that string
throws an exception. Check to make sure the value is numeric before
formatting it.
2016-08-11 19:13:49 -07:00
snipe
3a81b7e612
Eager load asset query on maintenances to prevent n+1 queries
2016-08-11 15:56:21 -07:00
snipe
4ffea7ceaa
Fixes #2406 - added missing gate for assets.edit
2016-08-09 16:38:43 -07:00
snipe
1d3255a00b
Allow admin to turn LDAP password sync off.
...
This is added to handle customers/users with a security policy that prohibits third-parties or external databases from storing LDAP passwords.
2016-08-04 14:29:28 -07:00
snipe
fff2bce9e4
Added missing username in header row
2016-08-02 15:16:01 -07:00
snipe
75e0c5565c
Add username and custom fields option to custom report
2016-08-02 15:04:10 -07:00
snipe
ca8ca89955
Added custom color to status labels, only show status labels if there are results
2016-08-02 13:25:50 -07:00
snipe
6fe639f490
Skip email if no email domain is given
2016-08-02 12:30:02 -07:00
snipe
a5467ba25d
Slug the username to handle spaces, etc.
2016-08-02 11:12:28 -07:00
snipe
1612562f41
Create log record and send EULA when creating a new asset that’s checked out
2016-08-02 10:33:44 -07:00
snipe
17d5e40e02
Fixes #2383
2016-08-02 09:54:31 -07:00
snipe
0e5209e80f
Few more dashboard fixes
2016-08-02 05:06:17 -07:00
snipe
39929c7d89
Better handling for deleted users
2016-08-02 04:23:13 -07:00
snipe
66ad0f1d4c
Better fix for location LDAP sync
2016-08-02 03:50:08 -07:00
snipe
3b247ba31f
Ignore location field if no value is passed
2016-08-02 03:45:03 -07:00
Brady Wetherington
1747be4b29
Enable .env file to point to location of CA Cert ( #2382 )
2016-08-02 02:36:00 -07:00
snipe
39450c1fe9
Eager load throttle query
2016-08-02 01:23:53 -07:00
snipe
886a31190c
Fixed route
2016-08-02 01:08:37 -07:00
snipe
8246a319a2
Fixes #2363 and #1097
2016-08-02 00:54:38 -07:00
snipe
27adeb427e
Generate barcodes locally and try to serve them if they exist
2016-08-01 22:56:28 -07:00
snipe
139325d8ba
Small tweaks for bad data
2016-08-01 10:17:46 -07:00
zjean
fcb1d6ac15
Fixed feedback on #2349 ( #2359 )
2016-07-29 13:59:50 -07:00
snipe
85232c47da
Merge branch 'develop' of github.com:snipe/snipe-it into develop
2016-07-28 21:31:58 -07:00
snipe
47f6635992
A few more permissions tweaks
2016-07-28 21:31:53 -07:00
Daniel Meltzer
eef8d1609e
Small fixes ( #2350 )
...
* components.view should point to view, not create
* Fix comment
* Rename variable to accurately reflect its responsibility
* Fix line breaks in serial key, remove places where adding line breaks makes no sense. Fixes #2344
2016-07-28 20:59:42 -07:00
snipe
1f0737cfb7
Allow super admins to override company
2016-07-28 12:40:19 -07:00
snipe
c07ad03e74
Removed unique from form request
2016-07-28 09:16:30 -07:00
snipe
68b7b8f932
Fixes Carbon date
2016-07-28 08:51:01 -07:00
snipe
f31637adb4
Fixes #2346
2016-07-28 08:39:28 -07:00
snipe
3e5d2b5385
Ability to remove field from fieldset
2016-07-28 08:10:15 -07:00
snipe
fbd0059bbb
Fixes #2317
2016-07-28 08:07:14 -07:00
snipe
f53c5706f6
Fixes #2341
2016-07-28 07:36:58 -07:00
snipe
14b0a6315f
Pass users path to get_src
2016-07-28 05:49:41 -07:00
snipe
eb508901c5
Zerofilling for auto-increment
2016-07-27 21:28:00 -07:00
Daniel Meltzer
a401986ef5
Only set the category_type in postEdit if the category is empty. ( #2337 )
...
Fixes #2333
2016-07-27 16:13:54 -07:00
Daniel Meltzer
399e70763b
Scope requestable assets to company as well. Updates to #2206 . ( #2326 )
2016-07-26 16:22:56 -07:00
Daniel Meltzer
9e4ac018ea
Don't allow users without a company to change the company of items if full company support is enabled. ( #2321 )
2016-07-26 13:31:36 -07:00
Daniel Meltzer
0bf5c6978e
Make sure the assigned user is actually shown in the dropdown list. Not sure why this wasn't throwing an error for me, but this makes it actually behave. ( #2322 )
2016-07-26 13:06:38 -07:00
snipe
b76dc25ac0
Duh, we don’t soft-delete companies
2016-07-26 02:11:41 -07:00
snipe
b30369f7ce
Added table name for trait
2016-07-26 02:04:31 -07:00
snipe
16fe53928c
Updated undeleted validation
2016-07-26 01:49:21 -07:00
snipe
2e665e128f
Putting uniqueUndeleted into a trait for use across models
2016-07-26 01:39:30 -07:00
snipe
60560e4994
Remove unused Log statement
2016-07-26 00:50:16 -07:00
snipe
a44b90dfc9
Custom validator for multiple deleted items with the same unique field
2016-07-26 00:44:26 -07:00
snipe
987b969e88
Move bcrypt out of loop for object importer
2016-07-25 22:31:33 -07:00
snipe
ad531d6d59
Merge branch 'develop' of github.com:snipe/snipe-it into develop
2016-07-25 22:10:38 -07:00
snipe
261d2f133b
Only bcrypt temp passwords once for performance
2016-07-25 22:10:33 -07:00
Daniel Meltzer
e0938cf82d
Scope to company when viewing assets ( #2315 )
...
* If a user doesn't belong to a company, when scoping to a company we should only show items that don't belong to a company.
* Scope tables/items to the company they belong to when fetching items for the index.
* Fix asset count to also scope to company. This fixes dashboard view
* Exempt super users from the child company check to be consistent. Fixes license count on dashboard now that we scope everything
2016-07-25 19:46:29 -07:00
snipe
eec22c5aeb
Removed port stuff, since LDAP ignores it anyway :-/
2016-07-22 16:21:16 -07:00
snipe
b03330aae0
Added TLS option in settings for LDAP
2016-07-22 16:00:37 -07:00
snipe
ba25972b49
Add LDAP port number option
2016-07-22 15:09:49 -07:00
snipe
d4138f4364
Fixes #2299
2016-07-22 03:10:25 -07:00
snipe
b2d958724b
Removed commented code
2016-07-22 02:11:37 -07:00
snipe
78fda31379
Helper method to introspect into the model level validation to see if the field is required
...
(This does not yet handle form request validation)
2016-07-22 00:29:23 -07:00
snipe
e256bdc9f7
Clearer version in footer
2016-07-21 21:39:23 -07:00
snipe
2e6e0e8911
Fixed versioning path
2016-07-21 21:30:49 -07:00
snipe
9385c3e9cf
Remove last name requirement from Form Request
2016-07-21 19:46:46 -07:00
snipe
61108102d7
No longer require last name
...
I may regret this…
2016-07-21 19:44:07 -07:00
Daniel Meltzer
68b0bbbec9
Fix tests ( #2273 )
...
* Update installer script for v3 now that things have moved around.
* Make Statuslabel attributes fillable and add them to the generated array. Fixes status label tests.
2016-07-19 15:50:21 -07:00
snipe
52425f62c5
Set default values for status labels in import
2016-07-19 15:49:04 -07:00
Daniel Meltzer
68d8e6a3a9
Importer again ( #2260 )
...
* Quote item names when displaying in error table.
* Remove the danger class as well as the warning class when uploading a file. Fixes a display error if a file is successful after a file fails upload.
2016-07-18 15:46:03 -07:00
snipe
192b1582f5
Merge branch 'v3' of git@github.com:snipe/snipe-it.git
2016-07-15 16:46:15 -07:00
snipe
27b8d326e3
fix for undefined user
2016-07-15 16:38:49 -07:00
snipe
698cb161d4
Not sure how this ever worked?
2016-07-15 11:11:48 -07:00
snipe
92175eb700
Few more LDAP/AD tweaks
2016-07-14 23:49:32 -07:00
snipe
c1d2be651a
Removed default pemissions
2016-07-14 18:32:54 -07:00
snipe
8729871353
Fucking rookie mistake. Send redbull.
2016-07-14 16:52:20 -07:00
snipe
99a42dfc38
More AD fixes
2016-07-14 16:27:32 -07:00
snipe
0cf8ac1d95
Add AD domain to settings
2016-07-14 15:52:52 -07:00
snipe
8fd8e747d9
Fix for missing input variable in suppliers ajax method
2016-07-13 22:35:21 -07:00
snipe
e6b872299d
Possible fix for #2246 - needs AD testing
2016-07-13 15:18:29 -07:00
snipe
40b56cfad7
Removed unused variables
2016-07-13 07:24:54 -07:00
snipe
5cd2c78d5e
Link to location view, not edit
2016-07-13 07:16:10 -07:00
snipe
2ce1d8b985
Fixed missing use statement
2016-07-13 07:13:49 -07:00
snipe
ab6e2a7301
Merge branch 'v3' of github.com:snipe/snipe-it into v3
2016-07-13 05:50:45 -07:00
snipe
e7038cfdc8
LDAP tester
2016-07-13 05:50:40 -07:00
snipe
4233c781ac
Reworked LDAP login. Fixes #2218
...
LDAP no longer fails completely when the connection settings are wrong, or when app key is messed up. Rather than auth as the admin user and search, we auth as the user themselves. Admin auth is only for LDAP sync now.
This should mean much fewer problems with donked LDAP settings and login.
2016-07-13 05:50:24 -07:00
snipe
b5d3843b7c
New LDAP model
2016-07-13 05:48:16 -07:00
snipe
026f099ba3
Fixed indenting
2016-07-13 05:47:32 -07:00
Daniel Meltzer
bf88cd8233
Check for variables to exist and not null rather than assuming it does. Fixes #2247 . ( #2248 )
2016-07-12 21:03:23 -07:00
snipe
c8351ae01b
Reverting back to or die
2016-07-11 18:25:29 -07:00
snipe
7a4cbce460
Use trans instead of lang::
2016-07-10 21:07:59 -07:00
snipe
3f835ba847
Updated lang to trans
2016-07-10 21:04:49 -07:00
snipe
f87fbbdb1d
Removed unused use statement
2016-07-10 21:01:11 -07:00
snipe
4e38f96f97
Switched or and and to || and && for code quality
2016-07-10 20:55:44 -07:00
Daniel Meltzer
ab3b9dcf5d
Add a clone button the the user table. ( #2241 )
...
Also preserve permissions when cloning a user, instead of nulling them by default.
2016-07-10 18:43:10 -07:00
Daniel Meltzer
f683c78a69
Fix adding an image to an asset when public/uploads/assets does not exist ( #2240 )
...
* Fix adding an image to an asset when public/uploads/assets does not exist.
First check to see if we can create directory and do so. If any errors occur, display the error string as an error on the page.
* Add the public/uploads/assets directory to new installs.
* Add some comments explaining this code so I remember what it does next time.
2016-07-10 18:43:00 -07:00
snipe
642be61007
Remove old asset importer
2016-07-09 19:35:42 -07:00
snipe
8d71e6b268
Fixed indenting
2016-07-09 18:20:57 -07:00
snipe
7ff77981f6
Fixed indenting
2016-07-09 18:19:51 -07:00
snipe
a9f060e768
Removed extraneous comments
2016-07-09 18:19:19 -07:00
snipe
9f4e0491ed
Fixes error in license checkout
2016-07-07 04:13:08 -07:00
snipe
f2ddc7b0ae
Added purchase cost and purchase date to listing
2016-07-07 02:07:21 -07:00
snipe
01b01c6479
Fixes #2149
2016-07-07 01:13:31 -07:00
snipe
3bb5479efd
Move print statement to LOG
2016-07-01 16:24:58 -07:00
snipe
0c98390eef
Hide bulk actions, checkbox and checkout/in if deleted
2016-06-29 04:19:37 -07:00
snipe
6d5bc64b2b
Another fix for status label types
...
This is a little janky, as it breaks up the errors into multiple screens if you don't have a status label type AND don't have a name. This is because the model-level validation won't work since we transmogrify that dropdown list of status label types into boolean values for the DB. Should eventually find a less clunky way to handle this, but needed to get a fix in now.
2016-06-28 14:52:11 -07:00
snipe
6633366b29
Small fix for status label types
2016-06-28 12:40:20 -07:00
snipe
483bf1b309
Merge branch 'v3' of github.com:snipe/snipe-it into v3
2016-06-28 12:19:19 -07:00
snipe
0e96a0aa3e
Updated comment
2016-06-28 12:19:14 -07:00
snipe
e4275bd3d3
Fixes status label inline creation
2016-06-28 12:19:05 -07:00
Daniel Meltzer
d484636bba
Add model number column to the hardware list. ( #2204 )
...
* Add model number column to the hardware list and allow searching based on model number. Column is hidden by default.
* Fix sorting. Add scope to order by model number.
2016-06-27 22:32:40 -07:00
snipe
82d19fc704
Merge pull request #2201 from dmeltzer/fix-user-creation-values
...
UserController::postCreate - Store all request information.
2016-06-27 21:12:49 -07:00
Daniel Meltzer
b1c28d7965
Move checks back into methods instead of having an extra helper method. Also remove unnecessary lock_passwords checks because there is a check at the top of the method that does this already.
2016-06-28 00:11:59 -04:00
snipe
6ea74f9fc3
Merge pull request #2203 from dmeltzer/display-error-if-import-upload-fails
...
If the move of the uploaded import file fails, return an error message.
2016-06-27 20:55:51 -07:00
Daniel Meltzer
278be52f7b
Show the exception message if APP_DEBUG is enabled.
2016-06-27 23:54:45 -04:00
Daniel Meltzer
ee1f983114
If the move of the uploaded import file fails, return a message. Fixes an issue reported on gitter today where bad permissions on the upload directory didn't provide any feedback.
2016-06-27 23:37:15 -04:00
snipe
e3fe80e2a5
Merge pull request #2202 from dmeltzer/sqlite-fix-asset-edit
...
Fix integrity constraint violation on sqlite.
2016-06-27 20:20:01 -07:00
Daniel Meltzer
d3b035cfe9
Fix integrity constraint violation on sqlite.
...
If the requestable checkbox was not checked, it did not exist in the request.
Setting requestable to null in such a case would cause a violation because it should be 0/1.
Also fix a copy/paste where we reset requestable after checking for rtd_location_id.
2016-06-27 23:16:03 -04:00
Daniel Meltzer
cf29a4a319
Extract common data from UserController postCreate and postEdit into a helper method. Use this method to store data about user. Fixes #2200
2016-06-27 22:48:09 -04:00
Daniel Meltzer
5bc52a9425
Link to user on asset checkout as well as checkin.
2016-06-23 09:39:50 -04:00
snipe
2867cd523d
Fixes #2192
2016-06-22 17:14:49 -07:00
snipe
0cf563ae5b
Show admin in maintenances
2016-06-22 17:04:47 -07:00
snipe
95beddf613
Use helper library for asset list
2016-06-22 16:58:36 -07:00
snipe
e5a5de6a0d
Just use inline validation instead of form request, since it's a one-off
2016-06-22 15:59:00 -07:00
snipe
0ca85f8a8a
Updates to components
2016-06-22 14:55:17 -07:00
Daniel Meltzer
25b916afeb
Show the name of the item with errors in the table.
2016-06-22 17:09:04 -04:00
snipe
f753783ca0
Smaller miminums for model and category name
2016-06-22 12:50:21 -07:00
snipe
4ed8ff5576
Formatting fixes for coding standards
2016-06-22 12:27:41 -07:00
snipe
70aefdc9c0
Merge pull request #2190 from dmeltzer/fix-asset-creation
...
Flash input on model validation errors when creating/editing assets.
2016-06-22 12:23:13 -07:00
Daniel Meltzer
f6d47887c4
Flash input on model validation errors when creating/editing assets.
2016-06-22 15:20:49 -04:00
snipe
8942e085c3
Merge pull request #2189 from dmeltzer/importer-improvements
...
Two more importer fixes.
2016-06-22 12:20:13 -07:00
snipe
3470fd57ef
Merge pull request #2188 from dmeltzer/paveit-syntax-fix
...
Add a space to the signature to make the --soft option work.
2016-06-22 12:16:25 -07:00
Daniel Meltzer
eba6574047
Add a space to the signature to make the --soft option work.
2016-06-22 15:13:43 -04:00
Daniel Meltzer
43e64a5f8c
Store a list of errors associated with each field instead of overwriting the error if multiple occur. Also Adjust the importer to extract the asset tag earlier in the process so all asset related errors are associated with the asset tag rather than some being tied to the name.
2016-06-22 15:13:01 -04:00
Daniel Meltzer
b9f72a2afa
Flash errors to session on edit as well.
2016-06-22 12:55:09 -04:00
Daniel Meltzer
560115e758
If we survive form request validation but fail model validation, ensure that the errors are actually flashed to the session. Another thing that will be better fixed in the future when handling json nicer.
2016-06-22 12:55:09 -04:00
snipe
dcdc1a6e7b
Merge pull request #2185 from dmeltzer/slack-fixes
...
A few slack fixes
2016-06-21 15:45:22 -07:00
snipe
508e7acb54
Bump up memory for LDAP import of large number of users
2016-06-21 12:22:10 -07:00
snipe
49bf9f8b5b
Switch null to lowercase for code style adherence
2016-06-21 11:06:53 -07:00
snipe
afc3cfa16a
Merge branch 'v3' of github.com:snipe/snipe-it into v3
2016-06-21 10:06:19 -07:00
snipe
37d22d6d21
Merge remote-tracking branch 'origin/v3-master' into v3
2016-06-21 10:03:45 -07:00
Daniel Meltzer
f004facb06
A few slack fixes
...
1) Missing $admin_user in AccessoriesController::postCheckout(). Fixes #2183
2) AssetsController::postCheckin used the hardware url for the user link, not the user url
2016-06-21 09:43:32 -04:00
Daniel Meltzer
d6dd449445
Only show importer progress if on command line. It broke error display from web.
2016-06-20 00:09:17 -04:00
Daniel Meltzer
8c00bad6d0
Add a check to ensure custom fields exist before iterating through them
2016-06-20 00:09:17 -04:00
Daniel Meltzer
4715cc6447
Pass user id to importer. This shows items imported through web interface as created by the appropriate user. Also save warranty_months to item, not just read it from csv. Fixes #2175
2016-06-20 00:09:17 -04:00
Daniel Meltzer
5a45ec708b
Use the model validation trait to validate asset maintences. Might be better to add a form request as well, but this at least makes the model validation occur. fixes #2170
2016-06-16 22:22:07 -04:00
Nikolai Prokoschenko
8d03668d78
Fix reverse proxy support
...
Reintroducing trusted proxies via fideloper/proxy:
* Upgraded fideloper/proxy to 3.1
* Added fideloper/proxy to Http/Kernel.php
* Added fideloper/proxy to config/app.php
* Added environment variable APP_TRUSTED_PROXIES to env (with '*' being the default fallback)
2016-06-16 15:43:42 +02:00