2c6e0283f4
Grumble grumble grumble codacy
2026-08-06 14:24:35 +01:00
138d212c50
Handle redirects for better UX
2026-08-06 14:16:16 +01:00
dbe942e68c
Handle last order defaults in the controllers
2026-08-05 22:25:59 +01:00
de2cdcb15b
Updated observers with created_at
2026-08-05 14:55:20 +01:00
12e5e6c0fc
Added enrichInitialOrderFromRequest to controllers
2026-08-05 14:31:12 +01:00
f07a6c6fa4
Updated redirect with hash
2026-08-05 11:52:18 +01:00
ce01114c2d
Updated tests
2026-08-03 18:55:44 +01:00
3c7fe91c86
Refactor qty adjustment to trait
2026-08-03 14:01:30 +01:00
a53928e1a4
Replenish/remove for consumables, accessories, components
2026-08-03 13:07:59 +01:00
d30b73d9c8
Harden internal URL redirect safety
2026-07-28 13:06:20 +01:00
9bc92f57c8
Apply pint to non-API controllers
2026-03-13 16:45:30 +00:00
e376492128
Use intended() for redirect options
2026-03-12 13:57:50 +00:00
0f215bbcf8
fix: replace deprecated Symfony Request::get() usage
2025-12-17 18:44:04 -08:00
bd2acefecc
rethought, keeping previous page as an option
2025-08-05 12:29:59 -07:00
c3442033da
Removed debugging
...
Signed-off-by: snipe <snipe@snipe.net >
2025-08-04 18:49:07 +01:00
f1dd84edba
Added option to clone original images
...
Signed-off-by: snipe <snipe@snipe.net >
2025-08-04 18:47:26 +01:00
8a9cf07063
editing controllers and edit blades for other categories
2025-07-01 12:31:55 -07:00
5a7ffa5664
Sure, whatever I guess.
...
Signed-off-by: snipe <snipe@snipe.net >
2025-02-19 04:18:40 +00:00
f7d213052a
Route model binding for resource groups
...
Signed-off-by: snipe <snipe@snipe.net >
2025-02-19 02:49:05 +00:00
d763feb803
Add consumable ui tests
2024-12-12 16:41:46 -08:00
822ea96dfd
Use auth()->id() instead of Auth::id()
...
Signed-off-by: snipe <snipe@snipe.net >
2024-09-19 17:31:46 +01:00
1582d81e5b
Change user_id to created_by
...
Signed-off-by: snipe <snipe@snipe.net >
2024-09-17 22:16:41 +01:00
759ab78f80
Added more redirects
...
Signed-off-by: snipe <snipe@snipe.net >
2024-07-26 11:27:36 +01:00
38affea3f3
More updates
...
Signed-off-by: snipe <snipe@snipe.net >
2024-07-20 16:57:10 +01:00
254e2f120b
Added clone to consumables
...
Signed-off-by: snipe <snipe@snipe.net >
2024-07-20 16:40:32 +01:00
2bfee0c29a
Few more tweaks
...
Signed-off-by: snipe <snipe@snipe.net >
2024-07-20 16:21:11 +01:00
c2fe3b5459
Use the observer to delete associated files and detach users
...
Signed-off-by: snipe <snipe@snipe.net >
2024-07-11 17:00:38 +01:00
b10441c928
Detach associated pivot records
...
Signed-off-by: snipe <snipe@snipe.net >
2024-07-11 16:01:18 +01:00
abd79219dd
Use form request to check for valid category
...
Signed-off-by: snipe <snipe@snipe.net >
2024-07-11 15:26:24 +01:00
22d73f503a
Merge pull request #12756 from dboth/develop
...
Fixed #8208 , #8896 , #8985 and #9789 : Currency issues when using non-english locales (resubmission)
2023-04-25 22:32:13 -07:00
07c0a1927b
Added supplier id to controllers
...
Signed-off-by: snipe <snipe@snipe.net >
2023-04-13 11:12:01 -07:00
3271c9dc9f
Fix #8208 , #8896 , #8985 , #9789
2023-03-29 09:56:34 +02:00
b5378eff64
Fix several typos
2022-04-05 16:12:31 -05:00
570dd09dcd
Add validation to Accessories and Consumables to not let the user update the number of items to less than they already have checked out
2022-03-15 17:52:19 -06:00
b876d0abb0
Merge remote-tracking branch 'origin/master' into develop
...
Signed-off-by: snipe <snipe@snipe.net >
# Conflicts:
# .env.example
# app/Http/Controllers/Auth/LoginController.php
# app/Http/Kernel.php
# app/Http/Transformers/ActionlogsTransformer.php
# app/Importer/AssetImporter.php
# app/Models/Accessory.php
# app/Models/Consumable.php
# app/Presenters/AccessoryPresenter.php
# app/Presenters/ComponentPresenter.php
# app/Presenters/ConsumablePresenter.php
# app/Providers/AuthServiceProvider.php
# composer.json
# composer.lock
# config/app.php
# config/cors.php
# config/version.php
# package-lock.json
# public/js/build/app.js
# public/js/build/app.js.LICENSE.txt
# public/js/dist/all.js
# public/mix-manifest.json
# resources/views/accessories/view.blade.php
# resources/views/consumables/view.blade.php
# resources/views/settings/saml.blade.php
# routes/api.php
2022-03-03 21:59:38 -08:00
9acb5413f6
Added notes field to controllers
...
Signed-off-by: snipe <snipe@snipe.net >
2022-03-03 20:29:25 -08:00
aa8f1378c9
Merge remote-tracking branch 'origin/master' into develop
...
Signed-off-by: snipe <snipe@snipe.net >
# Conflicts:
# README.md
# app/Http/Controllers/Accessories/AccessoriesController.php
# app/Http/Controllers/Api/AssetMaintenancesController.php
# app/Http/Controllers/Api/AssetModelsController.php
# app/Http/Controllers/Api/AssetsController.php
# app/Http/Controllers/Api/UsersController.php
# app/Http/Controllers/AssetMaintenancesController.php
# app/Http/Controllers/Assets/AssetFilesController.php
# app/Http/Controllers/Assets/AssetsController.php
# app/Http/Controllers/Assets/BulkAssetsController.php
# app/Http/Controllers/Components/ComponentsController.php
# app/Http/Controllers/Consumables/ConsumablesController.php
# app/Http/Controllers/Licenses/LicenseFilesController.php
# app/Http/Controllers/Licenses/LicensesController.php
# app/Http/Controllers/Users/UserFilesController.php
# app/Http/Transformers/AssetsTransformer.php
# app/Http/Transformers/LicensesTransformer.php
# app/Importer/UserImporter.php
# app/Models/Asset.php
# config/app.php
# config/version.php
# package-lock.json
# public/js/build/app.js
# public/js/dist/all.js
# public/js/dist/bootstrap-table.js
# public/mix-manifest.json
# resources/lang/en/admin/users/message.php
# resources/lang/is/button.php
# resources/lang/ja/admin/kits/general.php
# resources/lang/ro/admin/users/general.php
# resources/lang/zh-HK/admin/depreciations/general.php
# resources/lang/zh-HK/admin/models/general.php
# resources/views/hardware/qr-view.blade.php
# resources/views/hardware/view.blade.php
# resources/views/partials/bootstrap-table.blade.php
# resources/views/users/view.blade.php
# routes/web.php
# routes/web/hardware.php
# routes/web/models.php
# routes/web/users.php
2021-10-20 17:26:41 -07:00
f3338667c7
Create new ParseCurrency helper and use it in the appropriate controllers
2021-09-28 18:20:39 -07:00
934afa036f
Adopt Laravel coding style
...
Shift automatically applies the Laravel coding style - which uses the PSR-2 coding style as a base with some minor additions.
You may customize the adopted coding style by adding your own [PHP CS Fixer][1] `.php_cs` config file to your project root. Feel free to use [Shift's Laravel ruleset][2] to help you get started.
[1]: https://github.com/FriendsOfPHP/PHP-CS-Fixer
[2]: https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200
2021-06-10 20:15:52 +00:00
c31e150935
Use $request->input over Request::get()
2019-12-11 11:09:54 -08:00
296de34e8a
WIP: Upgrade develop to Laravel 6.6.1 ( #7637 )
...
I'm going ahead and merging this, since the upgrade doesn't break Flysystem any worse than the current develop is broken, so far as I can tell.
* Upgraded framework to Laravel 6
### TO DO:
- Fix password restriction rules- the old library isn’t compatible with Laravel 6 :(
- Figure out why in-app API calls are returning “Unauthorized”
* More updates from Input:: to Request:: helper
* Switch to Request:: from Input
* Added passport config
* Fixed goofy password minimum in seeder
* Added laravel/helpers
* Changed ($item) to ($item->id) in forms
I have no idea why this is necessary
* Changed ($item) to ($item->id) in forms
* Updated API middleware to auth:api
* Updated with added laravel auth.php values
* FIxed *&!^$%^&$^%!!!! ajax issue
* Switch to Request::get from Input::get
* Switched to Request facade
* Added password security minimums back in
The package we were using has not been updated to Laravel v6, so I created custom validators instead
* Added language strings for error messages for password rules
* Fixed `($item)` issue in formActions for partials
2019-12-10 19:32:50 -08:00
e3e0d57f56
Minor code cleanup bits and bobs ( #6805 )
...
* Add IDE Helper files
* Cleanup imports
- Alphabetises imports
- Removes unused imports
* Add Platform requirements
* Move filling asset into block where asset exists
* Remove duplicate array keys
2019-03-13 20:12:03 -07:00
64d649be7f
Monster: Cleanup/Refactor http controllers. ( #5916 )
...
* Extract a handlesimages trait to centralize logic for parsing/storing images on upload in create/edit methods.
* Use same image upload/layout in accessories as consum+components.
* Monster: Cleanup/Refactor http controllers.
This cleans up docblocks, pulls most non-crudy actions into their own
controllers, and does general cleanup/logic refactoring. There /should/
be no functional changes, but we all know how should works..
Extract checkin/checkout functions to a separate controller for accessories.
Move controllers to subdirectory.
Cleanup AssetModelsController
Extract component checkin/checkout
Assorted cleanups/doc/formatting in controllers.
Refactor LicenseController.
Refactor UsersController
Update viewassetscontroller.
* Codacy cleanups
* More codacy cleanups. Extract a LicenseCheckout Form request as well.
* A bit more refactor/cleaning of the license checkout method.
* Review Related Cleanups
* Fix most of the item_not_found translations. In many cases, the
string being generated did not even use the id parameter. Where it
does, pass it as id instead of as a different value.
* Remove some old $data arrays from when we manually sent emails from
the controllers. This has been superseeded by the notification system
(yay!)
* Bugfix: Only log the checkin of an accessory if the checkin completes sucessfully.
2018-07-24 19:35:26 -07:00