akemidx
2727210c78
requested changes from pr
2024-11-26 15:04:54 -05:00
akemidx
dd223fc215
commit for testing
2024-11-21 19:01:27 -05:00
akemidx
f0d3a6e2d3
removing some comments/merging in develop
2024-10-16 18:35:31 -04:00
akemidx
5cb940c2ee
Merge branch 'refs/heads/upstream/dev' into feature/sc-26415
2024-10-16 18:32:36 -04:00
Tobias Regnery
f3c4e55667
Refactor asset creation with API
...
Commit fb4fe3004
restored the previous behaviour to check the company_id in case of FullMultipleCompanySupport.
But after rereading the code and the laravel documentation, the check is already there where it belongs in AssetStoreRequest::prepareForValidation()
The bug is the is_int-check of the request input in prepareForValidation(). Is is of type string even if it is a numeric value, so the call to getIdForCurrentUser() never happend.
Fix this by removing the check and the now redundant call to getIdForCurrentUser().
Wrong values will get caught by the model-level validation rules.
2024-10-14 15:14:41 +02:00
snipe
0d35335da7
Removed debugging
...
Crowdin Action / upload-sources-to-crowdin (push) Has been cancelled
Docker images (Alpine) / docker (push) Has been cancelled
Docker images / docker (push) Has been cancelled
Tests in MySQL / PHP ${{ matrix.php-version }} (8.1) (push) Has been cancelled
Tests in MySQL / PHP ${{ matrix.php-version }} (8.2) (push) Has been cancelled
Tests in MySQL / PHP ${{ matrix.php-version }} (8.3) (push) Has been cancelled
Tests in SQLite / PHP ${{ matrix.php-version }} (8.1.1) (push) Has been cancelled
Signed-off-by: snipe <snipe@snipe.net>
2024-10-11 16:06:17 +01:00
snipe
130e0c6242
More validation
...
Signed-off-by: snipe <snipe@snipe.net>
2024-10-09 22:15:37 +01:00
snipe
3705b91439
Added more validation
...
Signed-off-by: snipe <snipe@snipe.net>
2024-10-09 20:51:34 +01:00
snipe
d9fbf330e5
Fixed translations
...
Signed-off-by: snipe <snipe@snipe.net>
2024-10-09 20:33:15 +01:00
snipe
3a77b83e9c
Added space
...
Signed-off-by: snipe <snipe@snipe.net>
2024-10-09 19:30:34 +01:00
snipe
4f957bcf71
Required flag
...
Signed-off-by: snipe <snipe@snipe.net>
2024-10-09 18:34:53 +01:00
snipe
5cda7cce48
Only accept a positive number for thresholds
...
Signed-off-by: snipe <snipe@snipe.net>
2024-10-09 18:21:40 +01:00
snipe
aa55fa6ff4
Switch to form requests for settings
...
Signed-off-by: snipe <snipe@snipe.net>
2024-10-09 18:16:34 +01:00
akemidx
299e743848
weird requesting
2024-10-08 15:51:53 -04:00
akemidx
0c84904bf9
un'required'ing the rule. not sure what's breaking here but looking
2024-10-02 18:56:41 -04:00
akemidx
e00a1aec02
note box is now missing when unchecking setting
2024-10-02 18:52:33 -04:00
akemidx
06e3bb7fd1
requested changes
2024-10-02 18:37:11 -04:00
akemidx
17706f150e
requested changes
2024-10-02 18:15:53 -04:00
akemidx
f45b836010
backend form validation. +cleanup
2024-10-02 18:15:53 -04:00
akemidx
925aea8531
back to having tests pass. needed to comment out the notes rules() i added
2024-10-02 18:15:53 -04:00
akemidx
bd6698de2a
fixing some formatting
2024-10-02 18:15:53 -04:00
akemidx
515f59fed9
more test work
2024-10-02 18:15:52 -04:00
snipe
ba69259f2d
Fixed #13396 - do not allow checkout to undeployable status types
...
Signed-off-by: snipe <snipe@snipe.net>
2024-09-24 15:35:00 +01:00
snipe
822ea96dfd
Use auth()->id() instead of Auth::id()
...
Signed-off-by: snipe <snipe@snipe.net>
2024-09-19 17:31:46 +01:00
snipe
abb4221539
Validation rules to prevent switchng user companies if assets are assigned
...
Signed-off-by: snipe <snipe@snipe.net>
2024-08-29 14:55:18 +01:00
Brady Wetherington
da1e383295
Use the null-safe property accessor for new-user creation
2024-08-29 14:09:23 +01:00
Brady Wetherington
ec2ea955d8
Fix PATCH of purchase_cost for assets for comma as decimal separator
2024-08-29 12:35:14 +01:00
spencerrlongg
70e5e0f9df
get rid of dd
2024-08-16 12:52:06 -05:00
spencerrlongg
f031309f8f
set up api controller for route/model binding
2024-08-14 16:09:15 -05:00
spencerrlongg
20ec420ba3
not quite done, api side needs some work
2024-08-14 13:53:29 -05:00
spencerrlongg
0941c0944a
ok, found issue, but need to test some things now...
2024-07-30 22:55:15 -05:00
spencerrlongg
9b80843c77
tests a little broken, added some nullchecks
2024-07-30 21:44:22 -05:00
spencerrlongg
8684a3efc3
delete note, add trait to other request
2024-07-30 21:22:46 -05:00
Spencer Long
fd7082c30f
Merge branch 'develop' into bug/sc-23936
2024-07-29 14:00:00 -05:00
arne-kroeger
b18baf74d2
added options to checkout accessoires to locations and assets
...
Added #14979 : add checkout functionality to accessoires
2024-07-29 10:54:53 +02:00
spencerrlongg
e8864ffb01
test added, permission fixed
2024-07-23 14:29:17 -05:00
Spencer Long
64be353156
Merge branch 'develop' into bug/sc-24884
2024-07-23 12:55:19 -05:00
snipe
ad85f8be2f
Cleaned up
...
Signed-off-by: snipe <snipe@snipe.net>
2024-07-20 05:55:12 +01:00
snipe
10856516ac
Split out the image deletion into a separate method
...
Signed-off-by: snipe <snipe@snipe.net>
2024-07-20 03:40:16 +01:00
snipe
822bc6f085
Removed response in form request
...
Signed-off-by: snipe <snipe@snipe.net>
2024-07-18 17:37:45 +01:00
snipe
0c4e498df3
Removed debugging
...
Signed-off-by: snipe <snipe@snipe.net>
2024-07-18 03:48:35 +01:00
snipe
f56006fb6b
More refactoring
...
Signed-off-by: snipe <snipe@snipe.net>
2024-07-18 01:46:53 +01:00
snipe
4f3064bdb1
Added store accesstory form request
...
Signed-off-by: snipe <snipe@snipe.net>
2024-07-18 00:24:51 +01:00
snipe
2b0627c1f6
Added accessory checkout request
...
Signed-off-by: snipe <snipe@snipe.net>
2024-07-18 00:24:28 +01:00
snipe
a7a1a377da
Added form request for consumables
...
Signed-off-by: snipe <snipe@snipe.net>
2024-07-11 15:25:07 +01:00
snipe
0d6fd2643d
More tweaks to the form request
...
Signed-off-by: snipe <snipe@snipe.net>
2024-07-05 05:59:39 +01:00
snipe
75da626c85
Check for category ID
...
Signed-off-by: snipe <snipe@snipe.net>
2024-07-05 03:21:24 +01:00
snipe
a1eafc108d
Moar typehinting
...
Signed-off-by: snipe <snipe@snipe.net>
2024-07-04 22:37:58 +01:00
snipe
d834ef5104
Updated string
...
Signed-off-by: snipe <snipe@snipe.net>
2024-07-04 21:52:37 +01:00
snipe
c570759370
Fixed tests
...
Signed-off-by: snipe <snipe@snipe.net>
2024-07-04 21:14:58 +01:00