3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-05 20:35:31 +00:00
Commit Graph

38 Commits

Author SHA1 Message Date
8a40d7e35c tests added, regex validation working 2025-07-23 16:12:19 -05:00
e9948f0718 fixes booleans, adds note, changes name 2025-07-21 15:34:08 -05:00
2f74a8afe1 mac address rule working 2025-07-21 12:02:45 -05:00
826521f053 added rules, still needs a little more... 2025-07-15 15:21:10 -05:00
f9b05bc8de more encryption rules extenting laravel's own 2025-07-15 15:03:51 -05:00
b8239e8ed9 use laravel validation methods, email works 2025-07-15 14:17:49 -05:00
95f867b267 Code formatting fixes
Signed-off-by: snipe <snipe@snipe.net>
2025-07-09 21:48:53 +01:00
1881054c92 Fixed #16863 - better handle unique not required custom field redirects
Signed-off-by: snipe <snipe@snipe.net>
2025-05-08 15:00:43 +01:00
e717f1e780 Removed logging
Signed-off-by: snipe <snipe@snipe.net>
2025-04-29 19:21:18 +01:00
d1085a0f46 Move notes above custom fields
Signed-off-by: snipe <snipe@snipe.net>
2025-04-29 18:53:31 +01:00
89a52b7551 Fixed fieldset display if custom fields are not available
Signed-off-by: snipe <snipe@snipe.net>
2025-04-29 18:09:32 +01:00
8c6869fd34 note and rm dump and comment 2024-11-13 21:59:32 -06:00
3982201d0e this should work in theory - local is screwy though 2024-11-13 21:38:09 -06:00
4841b89109 scratch code for this issue 2024-11-13 12:45:39 -06:00
5cf1a6c300 new validator for radio buttons 2024-03-25 21:03:13 -05:00
72c118a70f cleanup 2024-02-14 11:41:46 -06:00
25241542d2 progress, going to sleep 2024-02-14 02:12:31 -06:00
57a75e68b9 maybe i do the inverse here? 2024-02-14 00:52:50 -06:00
dcf2168454 initial stuff, need to switch branches 2024-02-13 19:35:37 -06:00
d55358652b cleanup for pr 2024-02-13 13:45:56 -06:00
bcfa913450 condition makes this work, needs more testing 2024-02-07 20:03:37 -06:00
38de69b3da new validation rule 2023-10-18 12:41:24 -05:00
0fdbd410b6 Use unique_undeleted instead of unique for custom fields
Signed-off-by: snipe <snipe@snipe.net>
2022-08-01 17:10:39 -07:00
6a91d4d19e Check for uniqueness constraint
Signed-off-by: snipe <snipe@snipe.net>
2022-02-16 13:46:22 -08:00
b62d1f49e4 Shift cleanup 2021-06-10 20:19:27 +00:00
104b441e0d Shift to class based factories 2021-06-10 20:17:44 +00:00
802dc9240d Shift bindings
PHP 5.5.9+ adds the new static `class` property which provides the fully qualified class name. This is preferred over using class name strings as these references are checked by the parser.
2021-06-10 20:16:56 +00: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
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
32951bbc90 Make CustomFieldset rules public instead of protected 2018-09-28 15:18:23 -07:00
05b03df600 Fix for issue #6165 (#6168)
* Fix problem when using ValidatingTrait

* Checking that email alerts are enabled when trying to send expected check-in alerts (fix for issue #6169)
2018-09-12 22:49:50 -07:00
2c38036123 Improvement: Better documentation, small refactors (#6017)
* Better documentation, small refactors

* Small comment fixes
2018-08-01 00:06:41 -07:00
2e76620cf8 More specific required check 2017-09-29 03:44:23 -07:00
a4b30279ee Fixes #4067 - Make unrequired custom fields nullable 2017-09-29 03:30:13 -07:00
6b5a0983ee Added model validation to custom fieldsets 2017-07-12 19:34:45 -07:00
51ceaedfaf Small phpcbf cleanup 2016-12-29 14:02:18 -08:00
537ad28a67 Don’t make required encrypted custom fields required if user is not an admin 2016-08-25 21:03:52 -07:00
fe00b0e401 Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00