snipe
cea255995c
Fixes #106 - adds Google Authenticator support ( #2842 )
...
* refactor to clean up LDAP login, and make the login method easier to handle.
* Login refactor cleanup
* Google 2FA package
* Adds Google Authenticator two-factor
* Removed unused blade
* Added optin setting in profile
* Removed dumb comments
* Made lock_passwords check more consistent
* Additional two factor strings
* Lock passwords check
* Display feature disabled text if in demo mode
* Two factor admin reset options
* Translation strings
2016-10-29 05:50:55 -07:00
Daniel Meltzer
3a8edfdf58
Eager load many more things. Fixes a lot of n+1 queries in ajax/bootstrap tables requests ( #2832 )
2016-10-28 14:15:13 -07:00
snipe
a929b635ff
Fixes #2809 - adds serial number to components
2016-10-27 15:33:48 -07:00
snipe
3e701c6dd1
Fixes #2814 - adds job title to users listing display
2016-10-27 14:29:07 -07:00
snipe
e4140f4c48
Fixes #2817 - adds EOL to custom report
2016-10-27 14:20:55 -07:00
snipe
691f9b621e
Fixes #2821
2016-10-26 11:27:37 -07:00
Daniel Meltzer
a418dece80
Better checking for empty values when updating. ( #2811 )
...
* Better checking for empty values when updating. There's a lot of conditionals in here that we may want to look at cleaning up over time
* Fix typo. No manfacturers here.
* Fix model update/import. Also hardcode the status id of unset assets to the first existing one instead of an id that may not exist... Still not ideal, but better.
* Let requests to .env through the middleware. We check to see if this is readable during setup as a warning, and as it stands it triggers an infinite loop trying to hit the file.
2016-10-25 19:51:13 -07:00
snipe
f30631efb6
Fixed parens on target
2016-10-25 12:53:07 -07:00
snipe
66585bcc40
Merge branch 'hotfixes/eagerload_license_checkout' into develop
2016-10-25 11:12:32 -07:00
snipe
d57135c81b
Removed unused helper methods, added docblocks
2016-10-25 11:11:47 -07:00
snipe
f976f440ef
Fixes #2808 - eager loading user objects for licenses
2016-10-25 10:52:37 -07:00
snipe
59ce46dce7
Merge branch 'hotfixes/use_modelno_if_no_name_in_import' into develop
2016-10-25 03:53:45 -07:00
snipe
2dbd1089f5
Use model number if model name is blank
2016-10-25 03:53:19 -07:00
snipe
85f3cc1762
Merge branch 'hotfixes/add_username_to_csv_export' into develop
2016-10-25 02:51:27 -07:00
snipe
1793461642
Added username, fixed duplicate company name
2016-10-25 02:50:23 -07:00
snipe
d24c4b1152
Merge branch 'hotfixes/export_all_users' into develop
2016-10-25 02:42:20 -07:00
snipe
30f0f6f527
Export users to CSV
...
Bypasses the weird limit bug in the javascript
2016-10-25 02:41:34 -07:00
snipe
b839741069
Merge branch 'hotfixes/order_number_numeric' into develop
2016-10-19 15:03:05 -07:00
Daniel Meltzer
85af8e46e3
Set a user_id of -1 if there isn't a logged in user. This fixes the CLI importer, and opens the door in the future for some sort of virtual importer user... which may fix other issues the importer currently has ( #2775 )
2016-10-17 11:07:08 -07:00
Daniel Meltzer
e85241af6a
Log checkouts ( #2772 )
...
* Ensure the log has a target before trying to fetch the associated company
* Log creation of items, both in importer and manually
2016-10-12 18:45:32 -07:00
snipe
31898d0f85
Fixes #2751 - asset tag added to asset maintenance report
2016-10-12 14:18:51 -07:00
snipe
b3329135df
Merge branch 'develop' of github.com:snipe/snipe-it into develop
2016-10-12 12:50:35 -07:00
snipe
2350c1c15c
Fixes #2352
2016-10-12 12:50:30 -07:00
snipe
8f4e016c01
Fixes #2768 and #2753
2016-10-12 12:48:37 -07:00
Daniel Meltzer
8e60767c00
Guard against null values in the reports generator. May fix #2758 ( #2762 )
2016-10-12 12:06:38 -07:00
Daniel Meltzer
2e0a7abbe9
Rework permissions view ( #2756 )
...
* Early layout work on a cleaner permissions interface
* Cleanup layout. Make new permissions view work. Still needs some css and javascript improvements. Also need to do the same thing to the group view.
* Improve styling, add javascript to toggle an entire group of permissions if choosing the permission on the header row. Would be nice to add collapsing of sections in the future.
* Toggle viewing sections.
* Special case places where we only have one item in a group to only display the item once.
* Filter getCreate the same way.
2016-10-12 12:06:28 -07:00
Matthias Frei
4b6ba6cb30
BugFix: Asset name was not included in custom report ( #2733 )
...
* BugFix: Asset name was not included in custom report
* BugFix: Custom Asset Report did not escape commas in custom fields. So the csv file is inconsistent, if a custom field containes a comma. Added an escape function which escapes the commas with a backslash.
A csvreader can be configured to handle the escape character.
2016-10-12 12:05:49 -07:00
Daniel Meltzer
2a95a95e00
Company to logs ( #2717 )
...
* Fix the actionlog/companyables problem by adding a company_id to all actionlogs and scoping directly on that. Works around bugs in laravel where trying to hunt down the polymorphic relationship would lead to an infinite loop
* Scope companyables in getactivityreport. Also eager load.
* Improve reportscontroller, work on seeder to test this.
* Only show company users in checkout dialogs
* If no admin associated with log, it might be a request. Leave blank instead of saying deleted admin
* When injecting company_id, use target instead of user if user is a superadmin
* Build up the seeder to generate users, companies, and logs.
* Eager load the log, don't scope the users log because the log should already include things only related to the user.
2016-09-29 22:20:49 -07:00
snipe
b41883c125
Use user object to prevent errors on deleted users
2016-09-29 11:37:38 -07:00
snipe
0a218a37d0
Check that the user exists before trying to get location id
2016-09-29 10:32:09 -07:00
Brady Wetherington
7ca7877740
Fix mismerged code. ( #2705 )
2016-09-28 22:57:19 -07:00
snipe
1394424760
Merge branch 'hotfixes/customfields_in_asset_report' into develop
...
# Conflicts:
# resources/views/models/custom_fields_form.blade.php
2016-09-28 19:28:55 -07:00
snipe
fc07753a5c
Use $customfields in closure
2016-09-28 19:18:01 -07:00
snipe
7bbe85801e
Fixed typo :(
2016-09-28 15:45:05 -07:00
snipe
8774927b91
PHPStorm lag = fail
2016-09-28 15:40:51 -07:00
snipe
48b52a0ccc
Merge branch 'hotfixes/p-typo' into develop
2016-09-28 08:59:07 -07:00
snipe
9ecb0e6ca1
Fixed errant typo
2016-09-28 08:58:16 -07:00
snipe
9091385182
Merge branch 'hotfixes/purchase_cost' into develop
...
# Conflicts:
# app/Http/Controllers/ReportsController.php
# config/version.php
2016-09-27 19:13:21 -07:00
snipe
b90c0de822
Fix companyable reult in maintenances
2016-09-27 19:07:45 -07:00
snipe
ee2522571c
Fixes #2673
2016-09-27 19:07:30 -07:00
snipe
67f199b09d
Added customfields to asset CSV export
2016-09-27 15:09:47 -07:00
snipe
f1c458185d
Client-side pagination on asset report for faster loading
2016-09-27 14:56:05 -07:00
snipe
fa72e64b98
Add checkout date to asset report
2016-09-27 08:42:48 -07:00
snipe
2a8ab06ca3
Remove escaping for CSV to prevent weird encoding
2016-09-27 07:25:28 -07:00
snipe
61d07bdc7c
Sigh.
2016-09-27 07:24:26 -07:00
snipe
3061ce2983
Missed delimiter for CSV
2016-09-27 07:23:30 -07:00
snipe
e9f3d622f5
Add company name to custom asset report
2016-09-27 07:19:52 -07:00
snipe
1e3244b2b3
Merge branch 'hotfixes/eol' into develop
...
# Conflicts:
# app/Http/Controllers/AssetModelsController.php
2016-09-27 07:04:45 -07:00
snipe
a92bfe8ade
Default EOL to null, not 0, if no value entered
2016-09-27 06:53:59 -07:00
snipe
c42dfadd17
Merge branch 'hotfixes/purchase_order' into develop
...
# Conflicts:
# app/Http/Controllers/LicensesController.php
2016-09-27 01:31:02 -07:00
snipe
0a391de09f
Fixes #2682 - search on purchase_order
2016-09-27 01:29:31 -07:00
snipe
b6cc7e7c14
Fixes bug where 12-hour fprmat for hours was used
2016-09-26 22:35:51 -07:00
snipe
819ca2921b
Fixes bug where 12-hour format was used for hours
2016-09-26 22:34:09 -07:00
Joris van Eijden
7d272e3c96
Fix pre-flight port number check. ( #2681 )
2016-09-26 18:23:56 -07:00
Andrés Núñez
40f00665b3
Translate emails ( #2652 )
...
* commit temporal
* final translation commit -- added email translations
* final translation commit -- removed file for spanish translations
* final translation commit -- removed file for spanish translations
* added missing translations
* method overrided and config files back to default
* config files back to default
* config files back to default
2016-09-26 14:13:07 -07:00
snipe
c3cd329604
Merge branch 'develop' of github.com:snipe/snipe-it into develop
2016-09-23 13:14:18 -07:00
snipe
2ba4986396
Updated history importer message
2016-09-23 13:14:11 -07:00
Eammon Hanlon
580091269d
mkdir not recursive ( #2460 )
...
* Fix path to snipeit-ssl.crt (#2428 )
* Modified 'recursive' part of the tuple to true
2016-09-21 12:05:06 -07:00
snipe
7fdd4fbe98
Updates to the history importer to make it a little less brittle and provide better feedback
2016-09-20 09:22:49 -07:00
snipe
aecef2618f
Add reply-to for mail
2016-09-20 07:20:40 -07:00
snipe
bd5e6d8551
Add reply-to config setting
2016-09-20 07:20:10 -07:00
snipe
5b0220ac1e
Fixed typo
2016-09-20 03:01:04 -07:00
snipe
aa92b93bd1
Fixes #2622 - add depreciation to license report
2016-09-20 02:58:08 -07:00
snipe
d3d36315d3
Hotfixes adding company name to custom report
2016-09-20 00:49:08 -07:00
snipe
3aa7c60765
Costometic cleanup
2016-09-20 00:45:25 -07:00
snipe
0962d770cf
Ajax activity report
2016-09-20 00:45:16 -07:00
snipe
5d8c06bc30
Eager loading for custom report
2016-09-19 23:52:20 -07:00
snipe
2597a7b896
Added Ajax reporting view
2016-09-19 23:52:01 -07:00
snipe
3741a93884
Added docblocks and cleaned up spacing
2016-09-19 23:51:45 -07:00
snipe
71be73781b
Add company name option to reports
2016-09-19 22:27:34 -07:00
tiagom62
e5098c3ba1
missing semicolon ( #2629 )
...
Rookie mistake. Fixes missing semicolon in previous pr #2624 .
2016-09-17 11:39:24 -07:00
tiagom62
46507c929a
Sort backups newest to oldest ( #2624 )
...
Viewing the backup list produces a seemingly random list.
This PR sorts the files newest to oldest.
2016-09-17 00:00:39 -07:00
tiagom62
06f174adf9
Allow uploading rtf files ( #2620 )
...
Microsoft Open License Order Confirmation's are sent in RTF format.
This change allows us to upload the RTF files under View License -> File Uploads.
2016-09-16 16:18:24 -07:00
Daniel Meltzer
2d8269ddcd
Checkout Improvements, and initial support for requesting an asset model ( #2573 )
...
* Create a new action_log table to replace asset_log. Use Polymorphism to generalize class and targets. Port everything I can find to use it. Add a migration to port the asset_logs table to action_logs.
* Initial work on requestable asset models
* Backend work for polymorphic requests table to store checkout requests.
* Add missing files
* Add a record to the db when requesting items. Build up a testing route for interfacing with this.
* Users can now toggle requests of items on the request page. Reformat page to use the same tab layout we use elsewhere
* Polymorphic request function. Implement requesting of asset models. Need to port mail/slack to notifications still.
* Implement requesting of asset models. Build up emails and notifications to support it. Allow specifying a quantity of model to request.
* Add view to show currently requested assets. Needs some work and cleanup, but it isn't accessible from anywhere yet.
2016-09-15 19:58:27 -07:00
snipe
b0a8a0427d
Merge branch 'hotfix/license-clone' into develop
...
# Conflicts:
# app/Http/Controllers/ReportsController.php
2016-09-14 19:08:06 -07:00
snipe
f384593e19
Fix license cloning
2016-09-14 19:04:52 -07:00
snipe
91a035ec5b
Text BOM text BOM, you’re my Text BOM….
2016-09-14 18:58:52 -07:00
snipe
d357326dc1
Use PHP streaming to generate asset report to prevent timeouts
2016-09-12 14:10:04 -07:00
snipe
5e2dbaffc4
Use streaming to handle large exports
2016-09-12 14:06:55 -07:00
snipe
7bde0f4f92
Fixes #2586
2016-09-08 20:01:46 -07:00
snipe
aa0ccf11fa
Only load the remote gravatar image if the server can talk to the outside world
2016-09-07 01:41:23 -07:00
snipe
a8f79369ee
Added components checkout gate
2016-09-07 01:15:14 -07:00
Daniel Meltzer
e86adccf19
Actionlog Class: Improvements and polymorphism ( #2561 )
...
* Save progress
* Create a new action_log table to replace asset_log. Use Polymorphism to generalize class and targets. Port everything I can find to use it. Add a migration to port the asset_logs table to action_logs.
* Allow accepted_id to be nullable.
* Comment out the thread_id migration, because it b0rks on a new database with the move. I'm unsure if the thread_id does anything...It doesn't seem to be used
* Clean up all old methods from Actionlog model. Port everything to use new cleaner interface.
* Port the actionlog factory to fix travis.
* Adjust code to work on php5. Also fix lurking adminlog call.
* Remove weird code
* Port the pave command. Also fix dangling adminlog
2016-09-06 19:39:42 -07:00
snipe
67315d81d6
Fixes #2134 - hide archived assets from list all
2016-09-01 13:28:15 -07:00
snipe
b450ef3534
Cast group permissions as array for older, wonky installs
2016-08-30 13:25:14 -07:00
snipe
04e9ca0942
Fixes #2399
2016-08-30 12:34:23 -07:00
snipe
2c18bc24a7
Check if username is userprincipalname
...
If it is, skip building the UPN for AD
2016-08-30 08:34:17 -07:00
snipe
ba70e5b053
A little demo-proofing of the maintenances page
2016-08-30 07:34:33 -07:00
snipe
421cbf11fc
Patches PR#2500 for dev because @dmeltzer forgot that we commit to the develop branch :P
2016-08-30 06:54:04 -07:00
snipe
cd28b012b3
Remove last name requirement in save user request
2016-08-30 06:47:38 -07:00
snipe
2cfb015b1a
Removed extra debugging info
2016-08-29 23:13:30 -07:00
snipe
e4dcd47d6c
Fix UTF-8 issues in imports
2016-08-29 22:57:48 -07:00
snipe
64cd4fb1c9
Allow X-Frame-Options to be disabled via env if necessary
2016-08-29 22:57:29 -07:00
Daniel Meltzer
276e0a7114
Importer: Implement item update and interface improvments ( #2507 )
...
* Add support for updating assets to the importer.
If an asset with a matching asset tag is found, and the --update flag is
passed to the importer, we edit the matching asset with any
asset-specific values, and persist to the database. Any missing/blank
values are skipped.
TODO: Add to web interface, add support in consumables/accessories
* Allow deleting of files on the import page.
* Extend web interface to allow updating of imported items.
This adds a modal dialog to the import process. Currently the dialog
allows the choice of update vs ignore, and choosing the item type to
import (Accessory, Asset, Consumable).
Also use Helper::ParseFloat() for purchase_cost processing. It exists,
and fixes issues on my end at least.
* Implement editing of consumables and accessories.
* Rename getProcessImportFile to postProcessImportFile to reflect how it's now used
* Fix copy-pasta error.
2016-08-29 15:49:32 -07:00
snipe
4dff58ec26
Fix array generation for select
2016-08-25 21:04:10 -07:00
snipe
537ad28a67
Don’t make required encrypted custom fields required if user is not an admin
2016-08-25 21:03:52 -07:00
snipe
96eb832fd3
Only decrypt if the user is an admin
2016-08-25 21:03:24 -07:00
snipe
130c798c90
Only accept a new value for encrypted fields if the user is an admin
2016-08-25 20:59:54 -07:00
snipe
e1229bfb0f
Graceful decryption method
2016-08-25 20:58:56 -07:00
snipe
97a938f119
Method helper to translate piped field_values into a useable array
2016-08-25 18:35:01 -07:00
snipe
11b9df4b48
Use updated L5 request method
2016-08-25 17:11:52 -07:00
snipe
0c2524954f
Removed unusued status_id variable
2016-08-25 17:10:09 -07:00
snipe
43fbd54a12
Store new fields in the database
2016-08-25 17:08:08 -07:00
snipe
406d270c01
Use L5 Request method for input
2016-08-25 17:07:58 -07:00
snipe
98eb26a2bd
Merge branch 'features/cusom_field_types' into develop
2016-08-25 16:36:21 -07:00
snipe
d72443c335
Use trans() for custom format text
2016-08-25 16:35:31 -07:00
snipe
4cf2d16c7a
Temp fix for number import on cost
2016-08-23 19:01:40 -07:00
snipe
f38912a5cf
Custom fields additions
2016-08-23 18:52:54 -07:00
snipe
ad22293f4b
Added show in nav for status label views and controller
2016-08-23 18:52:42 -07:00
snipe
fb402e138d
Smaller dashboard number
2016-08-23 18:52:12 -07:00
snipe
85f3e7e3d4
Added filter by status type
2016-08-23 15:51:59 -07:00
snipe
14fa7ed965
Fixed indenting
2016-08-23 15:51:14 -07:00
snipe
b726d131a4
More helpful message for LDAP TLS issue
2016-08-23 11:32:11 -07:00
snipe
014167699d
Fixes #2441 - use showAssetName to avoid blank entries in link name which makes Slack do weird things
2016-08-18 13:10:31 -07:00
snipe
d9f2e7bf58
If custom field is type URL, display it as a link
2016-08-18 12:44:55 -07:00
snipe
4c8c58d453
Clean up divs for gates in list view
2016-08-18 12:31:45 -07:00
snipe
be8049b41a
Include asset maintenances in purge
2016-08-18 07:06:15 -07:00
snipe
4419dc7434
Merge branch 'fix-double-format' of https://github.com/dmeltzer/snipe-it into dmeltzer-fix-double-format
...
# Conflicts:
# app/Http/Controllers/ConsumablesController.php
# app/Http/Controllers/LicensesController.php
# resources/views/hardware/view.blade.php
2016-08-16 18:53:45 -07:00
Daniel Meltzer
ac63642224
Add manufacturer to licenses ( #2436 )
...
* Add manufacturer to licenses. Shows in table and edit. Need to improve manufacturer view to show lists beyond assets still.
* Remove extra closing tags, formatting
* Work on making the manufacturer view show more options. Need to figure out how to change the table dynamically.
* Cleanup formatting and fix a few weirdities in hardware/view.blade.php
* Standardize on two-space tabs in this file, as it seems the most
* common.
* Fix a few places where we call number_format without guaranteeing the
* item is a number and not a string.
* Show a "No Results" message on components page if there are no
* components.
* Show table of licenses on manufacturer view page.
This reworks the ManufacturersController::getDataView method to delegate
the view to a sub method (currently assets or licenses, but plan to
extend to consumables/accessories/components as well). We then put tabs
at the top of the view to show multiple tables. This just duplicates
the table layout from licenses/index.blade, but I wonder if theres a way
to centralize that code, maybe through partials, over time..
The only known missing part of manufacturers for licenses would be adding it
to the importer, but the license importer should probably migrate to
object importer before doing too much more...
* Add manufacturer to accessory.
* Add consumables to the manufacturer view page.
2016-08-16 18:49:54 -07:00
Daniel Meltzer
5959f83de3
Rename parseCurrencyString to formatCurrencyOutput to clarify what it does better.
2016-08-16 20:47:53 -05:00
Daniel Meltzer
0c912bcf49
Fix more number_format madness.
...
This does two main things:
1) The importer now imports as numbers, not parsed strings. This allows
is to format values on output instead of input, which is what was
happening in most places.
2) Add a Helper::parseCurrencyString method and port everything to use
this. This checks to see if the value is numeric or empty, and returns
the appropriate value in all cases. Should fix all known occurances of
number_format expections.
2016-08-16 20:41:28 -05:00
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
snipe
973513a078
Remove unecessary log use statement
2016-06-15 21:18:40 -07:00
snipe
416cd96c94
Removed debugging loggin in middleware
2016-06-15 21:08:19 -07:00
snipe
87352470c0
Added sortable created_at to assets and users
2016-06-15 21:06:17 -07:00
snipe
27427dd26b
Additional comments to clarify permissions middleware
2016-06-15 20:57:16 -07:00
snipe
e2789b2951
Protect users routes
2016-06-15 20:45:57 -07:00
snipe
6a277a5391
Added inheritance back into users/groups
2016-06-15 20:45:45 -07:00
snipe
464ecc7cc6
Moved group sync
2016-06-15 11:51:10 -07:00
snipe
b4d6842a7c
Minor formatting changes, added DB call for custom fields
2016-06-13 21:45:52 -07:00
snipe
f3e42384c5
Hardcoded higher PHP execution limits
2016-06-13 21:41:09 -07:00
snipe
c29984d0df
Skip superuser check if the user isn't logged in
2016-06-13 19:05:29 -07:00
snipe
bfe4bc6ee5
Bypass company scoping if user is an admin
2016-06-13 11:40:22 -07:00
snipe
2df71be321
No need to update the user again
2016-06-13 11:30:47 -07:00
snipe
396446a34b
Updated namespace for collection
2016-06-13 10:54:28 -07:00
snipe
2daed3c271
Fix for custom fields not saving
2016-06-10 16:36:46 -07:00
snipe
c1a3592059
Fixes #2130
2016-06-10 08:29:43 -07:00
snipe
5904de8718
Remove asset tag requirement from form request
...
It donks the edit screen as it thinks the asset tag has already been taken
2016-06-10 05:54:20 -07:00
Daniel Meltzer
e9605891f3
Merge upstream and fix changes.
2016-06-10 07:44:45 -05:00
Daniel Meltzer
9c4c91063f
Merge branch 'v3' into Fix-Asset-Creation-with-old-data
2016-06-10 07:35:30 -05:00
Daniel Meltzer
4e74c553bd
Fix editing of assets. This also uses the asset form request for validation.
2016-06-10 07:33:33 -05:00
snipe
9e8b76d348
Use updated $request->input methods for 5.2
2016-06-10 05:16:27 -07:00
snipe
6fa4d1252d
Fixes purchase date if no purchase date given
2016-06-10 05:00:49 -07:00
snipe
a0901247a3
Let superadmins through companyable trait
2016-06-10 04:07:27 -07:00
snipe
02a9394cd9
Merge remote-tracking branch 'origin/v3' into v3-master
2016-06-10 03:41:03 -07:00
snipe
ec4bc6c2af
Allow superadmins to print labels
2016-06-10 03:40:49 -07:00
snipe
4e1472f66d
Merge remote-tracking branch 'origin/v3' into v3-master
2016-06-10 00:48:33 -07:00
Daniel Meltzer
044695cb02
Fix hardware creation error making old input disappear. This should be redone to dynamically update on the client side based on a JSON response instead of flashing and reloading, but that's a lot of change for v3 at this point.
2016-06-09 20:28:49 -05:00
snipe
f44d98924d
Removed erroneous call to nonexistent model
2016-06-09 14:42:13 -07:00
snipe
c91c1f92cd
Fixes #2132
2016-06-09 13:27:50 -07:00
snipe
bbb116f29c
Fixes #2142
2016-06-09 12:25:51 -07:00
snipe
845b182fdf
Fixes format for users in category view
2016-06-09 02:26:43 -07:00
snipe
2b5fb04ba9
Allow admin to add user on checkout screen
2016-06-09 00:36:52 -07:00
snipe
bb758d618b
Merge branch 'v3' of github.com:snipe/snipe-it into v3
2016-06-08 23:28:53 -07:00
snipe
51742d66df
Removed uneeded size array
2016-06-08 23:28:21 -07:00
Daniel Meltzer
9648c6f1d3
Fix license Checkout.
...
A mistake in the sqlite porting led to "Please select an asset"
disappearing. This centralizes that code in Helper, and uses the code
in Licensescontroller and componentscontroller.
Also use the proper name on the components checkout page.
AssetMaintencesController reuses the same underlying code as
licensescontroller, but we don't want "Please select an asset" to be an
option there, so I'm not changing that code.
2016-06-07 07:58:08 -05:00
snipe
75eb2bbe09
Janky-ass form request stuff
2016-06-06 21:02:06 -07:00
snipe
d4e231d5d4
Save permissions on new user
2016-06-06 18:56:43 -07:00
snipe
75dfb87671
Use form request for user add/edit to handle password and password confirmation
2016-06-06 14:15:50 -07:00
snipe
23936e465d
Merge pull request #2123 from dmeltzer/fix-setup-on-windows
...
Fix missing posix_getpwuid on windows.
2016-06-06 12:31:30 -07:00
snipe
13d11bfdcc
Merge pull request #2121 from dmeltzer/add-soft-pave
...
Add a 'soft' delete option to the pave tool.
2016-06-06 12:30:06 -07:00
snipe
21506f4101
Merge pull request #2120 from dmeltzer/add-clone-to-models-index
...
Add clone action to Assetmodels index page.
2016-06-06 12:29:54 -07:00
Daniel Meltzer
ea3e11e011
Fix missing posix_getpwuid on windows.
...
This isn't a perfect solution. It basically just nullifies the check on
windows. I'm not sure if IIS can run as a nonelevated user though, so
perhaps thats the best choice. Regardless, this fixes the setup.
2016-06-06 07:43:05 -05:00
Daniel Meltzer
6ba37a3a8d
Add a 'soft' delete option to the pave tool. This leaves db structure and migrations in place but removes everything inside the db except the first user.
2016-06-05 10:24:42 -05:00
Daniel Meltzer
a89511674b
Add clone icon to Assetmodels index page.
2016-06-05 10:00:31 -05:00
Daniel Meltzer
cd9cca9c6b
Modify Helper::categoryList() to take a category type parameter.
...
This allows for centralizing the category fetching code more and fixes
an error in asset model viewing (#2118 ). Also add a few translated
strings and standardize on a base of 'Select a *' for the default value
in our lists.
2016-06-05 09:47:44 -05:00
snipe
9f6eb02afc
Don't purge users where show_in_list = 1
...
This is necessary so hosted customers can't hard-delete my account :-/
2016-06-03 12:13:59 -07:00
snipe
f8ac9a3f77
Fixes #2110
2016-06-03 11:48:20 -07:00
snipe
c5d96812f3
Fixed erronerously removed save methods
2016-06-02 17:22:23 -07:00
snipe
95f94c1cfb
Fixed error when user has no permissions values
2016-06-02 17:16:22 -07:00
snipe
2d5a0deb31
Eager loading for requestable assets account page
2016-06-02 02:57:22 -07:00
snipe
7d2ea36997
Use permission gates on routes
2016-06-02 02:50:00 -07:00
snipe
97691726f0
Updates to permissions decoding
2016-06-02 02:49:32 -07:00
snipe
049e13e365
Switch to gate for permission check
2016-06-02 02:48:52 -07:00
snipe
dddb0f7267
Fixed group error message
2016-06-02 02:46:49 -07:00
snipe
5de6b8e016
Added gates to authservice provider for finer tuned permissions
2016-06-02 02:40:49 -07:00
snipe
46d3a784a2
Fixes groups for cloning users
2016-06-02 00:41:10 -07:00
snipe
1daa6abf48
Merge pull request #2101 from dmeltzer/importer-again
...
Case insensitive string comparison for items when importing
2016-06-01 18:13:02 -07:00
snipe
04610e7864
Just use model validation for new user
2016-06-01 18:04:11 -07:00
Daniel Meltzer
da01591ab8
Case insensitive string comparison for items when comparing with existing items. Fixes some false errors. Also remove stray characters from manufacturer logging.
2016-06-01 19:31:24 -05:00
snipe
cffa76e627
Find first record, instead of hardcoded id 1
2016-06-01 15:50:50 -07:00
snipe
9c4cd9c3ce
Save email/username format in settings controller
2016-06-01 15:45:26 -07:00
snipe
eacf70ee3f
Updated validation
2016-06-01 15:45:05 -07:00
snipe
f3c6275f8d
Removed settings form request
2016-06-01 15:43:12 -07:00
Daniel Meltzer
1c1ef951e9
Fix a regression in Helper::usersList and ::managerList() where the "Select a User" option disappeared. Also format names the way they used to be formatted.
2016-06-01 13:47:46 -05:00
Daniel Meltzer
3ddaa88694
Fix image processing when editing an existing asset. Also reenable the image scaling on the server, but boost limit to 800x800
2016-05-31 19:50:58 -05:00
Daniel Meltzer
fcc79456fd
Play with a mobile friendly capture-image-from device when adding an asset. This also involved rewriting the upload to be all ajaxy and stuff
2016-05-31 19:50:58 -05:00
snipe
11c400f12b
Merge pull request #2095 from dmeltzer/importer-improvements
...
Reduce Import error warnings in importer.
2016-05-31 17:45:29 -07:00
Daniel Meltzer
f2a5337ad2
Simplify
2016-05-31 19:41:14 -05:00
Daniel Meltzer
4af5cdd64f
asset_id is not allowed to be null in asset_log according to db schema. 0 it out here to make sqlite happy.
2016-05-31 19:41:14 -05:00
Daniel Meltzer
0fa82743a1
Remove remaining DB::Raw(concat) calls to make things more sqlite friendly. This adds one new method to the Asset Model to return the formatted string that was used by the license and asset maintence controller. It also fixes a potential sqlite-only issue where '' and null are different.
2016-05-31 19:41:14 -05:00
Daniel Meltzer
45d93ffa8c
Use a transaction while creating license seats. Makes adding a license with a large number of seats much more managable.
2016-05-31 19:41:14 -05:00
Daniel Meltzer
4b98711e07
Replace the assorted concat() methods with a full_name method in the User model and adjust queries accordingly
2016-05-31 19:41:14 -05:00
Daniel Meltzer
a729038ccd
Fix typo.
2016-05-31 19:00:11 -05:00
Daniel Meltzer
dab2a50982
Only display errors in import table if things actually prevent the asset from being created. Also some table formatting improvements.
2016-05-31 18:04:01 -05:00
snipe
0e0b31bba6
Company name length to 1
2016-05-31 15:04:13 -07:00
Daniel Meltzer
004c63cd5d
Improve web imported. Show a list of all items with that were not imported correctly after import. Modify ObjectImporter and add a web-import parameter that causes it to spit out json errors exclusively. Long term I want to separate the console command and the logic so we aren't calling the console command directly, but rather a class that does everything. This would allow for easier progress reports and ajaxification.
2016-05-26 21:29:29 -05:00
Daniel Meltzer
715e385925
Two things. One, try to make the import uploads directory if it doesn't exist. Two, call the object importer instead of the old asset importer. TODO: Feed output from object importer back to import page.
2016-05-26 08:00:00 -05:00
Daniel Meltzer
891c37b2ed
Add warranty months. Also fix a merge issue where things reverted back to comment instead of log.
2016-05-25 21:13:26 -05:00
Daniel Meltzer
e353df588f
Importer improvements. If user real name doesn't exist don't try to create the user.
2016-05-25 20:47:46 -05:00
Daniel Meltzer
fd0d04eba4
Import status labels.
2016-05-25 20:46:01 -05:00
Daniel Meltzer
22c6f32e92
Instead of a field in the csv, set whether assets, consumables, or accessories are generated by an option on the command line. Also Adjustconsumables/accessories to function smoother.
2016-05-25 20:37:19 -05:00
Daniel Meltzer
04428d2d07
Replace console output in ObjectImporter with a logging mechanism. Also track all model/validation errors and output them at the end of the import, rather than inline.
2016-05-25 20:37:19 -05:00
snipe
37be587c39
Make regular and highlight colors the same, since we're not using highlight colors in the pie chart yet
2016-05-24 16:19:44 -07:00
snipe
0c33575962
Merge branch 'v3' of github.com:snipe/snipe-it into v3
2016-05-24 16:10:45 -07:00
snipe
bfc3f69adb
Better comments on model methods
2016-05-24 16:08:18 -07:00
snipe
cde0d49e18
Added assets method
2016-05-24 16:06:22 -07:00
snipe
abf027059f
Fixed comment
2016-05-24 16:06:15 -07:00
snipe
4edc2a7a66
Route and controller for dashboard chart
2016-05-24 16:06:09 -07:00
snipe
3b838ca867
Added static colors for charts
2016-05-24 16:05:51 -07:00
Daniel Meltzer
293b8c0dea
Fix strings for StatusLabels, they still referenced locations.
2016-05-24 17:54:44 -05:00
snipe
780c0e678d
Changed min dimensions to 500 from 300
2016-05-24 13:21:18 -07:00
snipe
de5e1ca86b
Add persedown helper
2016-05-24 10:21:33 -07:00
snipe
6c6e65b8ca
Fixes #2076
2016-05-24 09:46:43 -07:00
snipe
64d818e56e
Fixed License and LicenseSeat namespaces for importer
2016-05-24 02:17:10 -07:00
snipe
d6715914e1
Fixed supplier namespace
2016-05-24 02:13:28 -07:00
snipe
f10b3b7cdb
Fix for license importer
2016-05-24 01:51:47 -07:00
snipe
f844bf4b41
Nicer focus handling for asset search
2016-05-24 01:10:05 -07:00
snipe
cb91829729
Fixed division by zero error
2016-05-24 00:49:56 -07:00
snipe
fb35e40342
Search by asset tag
...
Compatible with barcode scanners
2016-05-20 17:02:28 -07:00
snipe
7fd6051514
Fixes #2062 - old permissions masks to new
2016-05-20 12:23:31 -07:00
snipe
2c7b345ad2
Merge pull request #2057 from dmeltzer/fix-settings-table-for-sqlite
...
Fix Settings Table for Sqlite
2016-05-19 20:27:56 -07:00
Daniel Meltzer
a6849fc689
Remove stray code from my commit and add a migration to fix the Settings issue the proper way.
2016-05-19 21:52:49 -05:00
snipe
db6305bf1f
Merge pull request #2056 from dmeltzer/make-categories-limit-work
...
Make limit/offset work in getDataView
2016-05-19 19:50:22 -07:00
snipe
cbcc155f27
Settings tweaks
2016-05-19 19:49:25 -07:00
Daniel Meltzer
1148750c9a
Make limit/offset work in getDataView
2016-05-19 21:45:48 -05:00
snipe
c4a699f109
Validation for new alert settings
2016-05-19 19:43:05 -07:00
snipe
2b1bf9f7f3
Merge branch 'v3' of github.com:snipe/snipe-it into v3
2016-05-19 19:34:11 -07:00
snipe
15eb6df1db
Add settings for alert interval threshold and inventory threshold
2016-05-19 19:33:53 -07:00
snipe
29e54830e1
Added 2D barcodes to labels
2016-05-19 19:12:42 -07:00
Daniel Meltzer
592ce4c2de
Readd sample.csv. Also port away from Sentry in the importer to be laravel5 compliant.
2016-05-18 23:33:18 -05:00
Daniel Meltzer
4f70fa88d9
Rename to snipeit:import
2016-05-18 22:40:02 -05:00
Daniel Meltzer
173c3de36a
Add the asset to the cache after creating it as well.
2016-05-18 22:40:02 -05:00
Daniel Meltzer
2a56148ec2
Remove extraneuous htmlentities() calls, now that we call it in array_smart_fetch
2016-05-18 22:40:02 -05:00
Daniel Meltzer
df749f26f5
Add the company/suppliers to the cache. This fixes some issues with duplicate items existing
2016-05-18 22:40:02 -05:00
Daniel Meltzer
191ae110d0
* Alphabetize the createOrFetch methods
...
* Move the html escaping to array_smart_fetch to avoid duplication
* Ensure string comparisons have === everywhere
2016-05-18 22:40:02 -05:00
Daniel Meltzer
5821127a79
Update/port ObjectImportComandd to work with v3. Also change to do one big transactional commit instead of writing to db after each item. Went from a 2 minute import to a 5 second import for a 2000 item file. I still need to do some more santization of the input and work on error handling, but this seems to be in decent shape.
2016-05-18 22:40:02 -05:00
snipe
5333c7083a
More dashboard fixes
2016-05-18 19:48:19 -07:00
snipe
c1c7fa143d
Components display on assets page
2016-05-18 19:26:50 -07:00
snipe
fb26188e41
Fixed dashboard for components
2016-05-18 19:16:43 -07:00
snipe
47c70141c7
Gross copypasta fix for #1932
2016-05-18 19:08:16 -07:00
snipe
23e416fd88
Make site name required
2016-05-18 18:24:28 -07:00
snipe
b0b7cfa999
Better handling for show/hide columns in depreciation report
2016-05-18 16:06:29 -07:00
snipe
7ee13113e0
Add depreciation name and months to depreciation report
2016-05-18 15:59:54 -07:00
snipe
0568e979e8
If permissions are blank, don't error out on json_decode
2016-05-18 14:38:17 -07:00
snipe
631aade6c4
Cleaned up language strings for categories
2016-05-17 21:16:12 -07:00
snipe
0ea5b090af
Fixes issue with HTTPS key not found on non-HTTPS installs
2016-05-17 21:15:48 -07:00
snipe
f9572ffa0c
Fixes #2048
2016-05-17 21:15:29 -07:00
snipe
e552c36a0a
Add model_no, item_no, and manufacturer to consumables
2016-05-16 17:11:31 -07:00
snipe
63f4bbe412
Temporarily remove clone option from categories view
2016-05-14 18:06:49 -07:00
snipe
8b072fddcf
Fixes middleware for locale
2016-05-14 17:25:56 -07:00
snipe
415b60a293
Added check for setup in Setting model
2016-05-14 16:09:00 -07:00
snipe
8ca71df7c9
Check for superuser
2016-05-14 15:05:35 -07:00
snipe
9a8e4a55e7
Check for DB table
2016-05-14 15:05:28 -07:00
snipe
1a14abed05
Check that the table exists
...
Should probably find a way to handle this that doesn't require a DB call
2016-05-14 15:05:20 -07:00
snipe
4dd3a95b6d
Fix https detection
2016-05-14 15:04:59 -07:00
snipe
beed74c0d0
Add extra tables for drop
2016-05-14 15:04:51 -07:00
snipe
f4490b14f8
[Feature] Re-order custom fields (drag and drop)
2016-05-14 14:06:59 -07:00
snipe
a726934cde
Fixed bulk delete+checkin for users
2016-05-12 21:01:31 -07:00
snipe
252b114b5f
Fixed case sensitive model for status labels
2016-05-12 17:23:51 -07:00
snipe
73327d31e3
Updated backup paths for config variables in laravel-backups 3.7.0
2016-05-12 17:16:10 -07:00
snipe
9cfde523b0
Updated laravel-backup package
...
Files are still not being generated. Open a ticket with the package maintainer
2016-05-12 16:54:07 -07:00
snipe
b9b8149234
Minor backups fixes
2016-05-12 16:20:23 -07:00
snipe
720274446e
Fixes #1997 - save user groups without Sentry crap
2016-05-12 15:26:48 -07:00
snipe
6d91774943
[Feature Request] Fixes #2030 - allow asset name change on checkin
2016-05-12 12:34:44 -07:00
snipe
062cbeb18f
Fixed bug in categories asset listing for hardware
2016-05-12 10:39:19 -07:00
snipe
ae8a03fec3
Add manufacturer name/sorting/searching on assets
2016-05-12 10:38:57 -07:00
snipe
c56c398d4c
Fixes #1996 - replace old Sentry methods with laravel native
2016-05-09 15:40:27 -07:00
snipe
a144fb77cd
Fixed hodor
2016-05-09 15:38:29 -07:00
snipe
d40289fbc9
Fixes #1997 and #1996 - replace sentry functions
2016-04-28 21:59:43 -07:00
snipe
ba01b20ad4
Use updated redirect() reference
2016-04-28 21:06:41 -07:00
snipe
8dd0e72284
Remove erroneous comment
2016-04-28 21:05:45 -07:00
snipe
d927aa3273
Fix delete method for groups
2016-04-28 21:03:56 -07:00
snipe
a0bff94de3
Moved selectedPermissionsArray
2016-04-28 20:57:07 -07:00
snipe
7d8af579cf
Updated controller with correct helper namespace
2016-04-28 20:57:02 -07:00
snipe
7783471cc3
Move selectedPermissionsArray to helper, since it can be used by users as well
2016-04-28 20:56:47 -07:00
snipe
8dc0dc0a07
Update permissions for cli user tool
2016-04-28 20:56:27 -07:00
snipe
7b489ad1ec
Ability to suppress users from checkoutable list
2016-04-28 20:19:22 -07:00
snipe
449163c875
Fixes #1995 - updated group admin to use native permissions
2016-04-28 14:03:54 -07:00
snipe
32c193b9bf
[Bugfix] Fixed Mail namespace
2016-04-23 04:02:52 -07:00
snipe
c3b7332e3b
[Bugfix] Fixed Mail namespace
2016-04-23 04:02:40 -07:00
snipe
96911b9e57
Fixes #1944 - add manufacturer to model list
2016-04-23 03:34:49 -07:00
snipe
3eb09871cf
Fixed model name
2016-04-23 03:12:39 -07:00
snipe
1b5ef695f2
Add custom fields to modals in create asset
2016-04-23 03:12:31 -07:00
snipe
97e218541b
Fixes date sanity check in checkout
2016-04-23 02:36:21 -07:00
snipe
7a65fe8f89
Only get fieldset rules if there if is a model selected
2016-04-23 02:35:31 -07:00
snipe
93e7715c28
Fixes dumb timestamp if the user manually removes date
2016-04-23 02:34:29 -07:00
snipe
7e0ab645bf
Removed junk text
2016-04-23 02:09:52 -07:00
snipe
4d4b4ffd36
Use new checkout/checkin method
2016-04-23 02:08:38 -07:00
snipe
466f660a63
Removed older commented out code
2016-04-23 02:08:18 -07:00
snipe
aa13b24bbc
Remove Parsefloat. Again.
2016-04-23 02:08:04 -07:00
snipe
8179fc2f90
Changed checkout method to be more generic, for checkin and checkout
2016-04-23 02:07:40 -07:00
snipe
c9d285cf47
Fixed float for purchase_cost
2016-04-21 22:23:08 -07:00
snipe
44f7305e12
Fix restore assets
2016-04-21 21:01:57 -07:00
snipe
6b982ec253
Check for accessories
2016-04-21 21:01:45 -07:00
snipe
a0b080b91d
Fixed restore again.
...
For some reason, $user->restore() isn't working? WTF.
2016-04-21 20:52:32 -07:00
snipe
0a5e7214aa
Fixed restore method
2016-04-21 20:27:03 -07:00
snipe
c39e27cc5e
Fixes #1955 - searching within locations
2016-04-19 20:23:04 -07:00
snipe
4efc30c63e
Escape search query text
2016-04-19 20:22:37 -07:00
snipe
f2d883e711
Removed box header
2016-04-19 07:43:49 -07:00
snipe
13f85e82bb
Fixes #1909 - allow 0 month depreciation
2016-04-19 07:39:54 -07:00
snipe
3e84d66c80
Re-use settings to prevent 1001 queries
2016-04-19 06:11:20 -07:00
snipe
c4ea4f80b1
Fixes #1693 - hide soft-deletes assets from asset model view
2016-04-19 04:55:16 -07:00
snipe
7c710e3fbe
Updated kernel with new namespace
2016-04-19 04:36:36 -07:00
snipe
599066cbde
Use error method to highlight errors in import console
2016-04-19 04:36:25 -07:00
snipe
49c09dd356
Added ability to purge soft-deletes from admin
2016-04-19 04:36:07 -07:00
snipe
78aa0cc378
Fixes #1918 - wrong link for status
2016-04-19 02:44:59 -07:00
snipe
18869550a7
Fixed stray quotes
2016-04-19 02:28:54 -07:00
snipe
9de2725de0
More purge fixes
2016-04-19 01:38:11 -07:00
snipe
a8ff632740
Fixes asset purge
2016-04-19 01:27:04 -07:00
snipe
74400eb9a1
Purge function to delete all soft-deleted items
2016-04-19 00:47:54 -07:00
snipe
4161a8af29
Change snipe-it commands to use common namespace
2016-04-19 00:47:32 -07:00
snipe
f1ad5461d8
Feature: Artisan command to allow you to disable LDAP in case you lock yourself out.
2016-04-14 11:59:01 -07:00
snipe
cd0df27516
Comment edit
2016-04-12 19:24:02 -07:00
snipe
b6fa3a2a89
Added todos, fixed ID casing
2016-04-07 17:23:52 -07:00
snipe
4b168e8cfa
Fixes #1932 - disallow category delete if there are assets/accessories/etc
2016-04-07 17:15:30 -07:00
snipe
d601db2090
Updated docs
2016-04-07 17:08:38 -07:00
snipe
bf728da39d
Updated to use 5.2 trans() instead of Lang::get for localization
2016-04-07 13:39:35 -07:00
snipe
a62859dc6d
Updated docblocks
2016-04-07 13:21:09 -07:00
snipe
95e4845176
Fix userlist for accessory checkout
2016-04-07 05:03:14 -07:00
snipe
4a7b0c0d0f
Updated docblocks
2016-03-28 22:51:49 -07:00
snipe
6f9bad1005
Use lightbox for images in asset file listing
2016-03-25 20:38:27 -07:00
snipe
90d4a8b2e3
Cleanup namespaces a bit
2016-03-25 19:26:22 -07:00
snipe
e7405e8d89
Coding is still hard, apparently.
2016-03-25 18:51:44 -07:00
snipe
a10da2e148
Fixes error loading consumables
2016-03-25 18:29:45 -07:00
snipe
41384dc62f
Fixes #1845 - remove ability for users to change their email and password
2016-03-25 18:20:57 -07:00
snipe
f1558706ff
Updated docblocks
2016-03-25 18:07:12 -07:00
snipe
46a76e2c55
More compact user code
2016-03-25 17:45:50 -07:00
snipe
bd1cb921fc
Nicer namespacing and lazy eager loading for 101 queries in location assets
2016-03-25 17:38:17 -07:00
snipe
2b74fd86cb
Trying to fix backup script
...
This is still broken, but I will come back to it
2016-03-25 17:21:01 -07:00
snipe
95e2825716
A few more path fixes
2016-03-25 17:20:28 -07:00
snipe
bddb7fca23
Additional doc blocks, added private_uploads path
2016-03-25 15:50:08 -07:00
snipe
27543d16f6
Additional escaping
2016-03-25 15:24:12 -07:00
snipe
4b9dc430c4
Escape data in datatables
2016-03-25 06:50:24 -07:00
snipe
753a7333f1
If the settings table is empty, set a default
2016-03-25 05:39:08 -07:00
snipe
7ec109c4d8
Fixed slug helper
2016-03-25 03:32:35 -07:00
snipe
aff133b5f1
Applied updates from PR for LDAP pagination
2016-03-25 01:38:10 -07:00
snipe
fe00b0e401
Version 3 - hold onto your butts
2016-03-25 01:18:05 -07:00