132308b2ef
Custom Fields - Fixed #19498 - re-add radio buttons as booleans
2026-08-17 11:36:17 +01:00
f045845f17
Add mappings for appropriate field types
2026-07-17 17:04:04 +01:00
b3215247bc
Updated seeder for attaching fieldsets and fields to models
2026-07-17 14:17:45 +01:00
04e0d8298a
Update models for cast and rules for datetime
2026-07-17 10:18:35 +01:00
ade07b411b
Added helper and CSS
2026-05-29 17:37:12 +01:00
80b7ebd508
Moved adminuser method to the SnipeModel
2026-03-27 19:20:54 +00:00
e285ee2931
Small fixes in formatting
2026-03-24 21:33:46 +00:00
9623fa4d87
Use pint on models directory
2026-03-13 15:55:28 +00:00
2f74a8afe1
mac address rule working
2025-07-21 12:02:45 -05:00
95f867b267
Code formatting fixes
...
Signed-off-by: snipe <snipe@snipe.net >
2025-07-09 21:48:53 +01:00
c7835d2d1d
Fixed copypasta
...
Signed-off-by: snipe <snipe@snipe.net >
2025-04-29 20:08:34 +01:00
f26e27d23e
Display in checkboxes not saving on custom [sc-29028]
...
Signed-off-by: snipe <snipe@snipe.net >
2025-04-29 19:21:50 +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
afd9282785
Update remaining comments from snipe/snipe-it to grokability/snipe-it
2025-04-03 12:07:05 -07:00
c73d64cdbc
Remove manual doctrine mapping for enums
2025-02-25 13:37:23 -08:00
de3ebfecfe
Ensure we don't call preg_split() with a null as the second parameter
2025-02-06 13:24:39 +00:00
a439d8abe8
Use fully qualified use statements
...
Signed-off-by: snipe <snipe@snipe.net >
2024-07-25 16:08:46 +01:00
8b9b46c562
Removed comment
...
Signed-off-by: snipe <snipe@snipe.net >
2023-10-25 19:41:59 +01:00
e5bd78a722
Added show_in_requestable_list validation, casting
...
Signed-off-by: snipe <snipe@snipe.net >
2023-10-25 17:28:35 +01:00
fea11ec7f1
Merge pull request #12761 from spencerrlongg/bulk_edit_custom_fields
...
Bulk Editing Custom Fields
2023-08-22 12:40:18 +01:00
3078cab7ee
Added ability to show/hide custom fields in list views by default
...
Signed-off-by: snipe <snipe@snipe.net >
2023-07-14 09:09:43 +01:00
2a352619f7
clean up
2023-06-26 16:25:48 -05:00
f646623a5e
Merge branch 'develop' into bulk_edit_custom_fields
2023-06-22 18:00:31 -05:00
f4947bfa93
Use trim() function when format the custom field values as array
2023-05-24 04:06:31 -06:00
07336bbc6a
Added auto_add_to_fieldsets field
...
Signed-off-by: snipe <snipe@snipe.net >
2023-04-25 15:51:36 -07:00
52dc99588e
pushing for now, needs validation work
2023-04-17 13:57:48 -05:00
8b9aea8874
very much WIP, but dupe queries reduced
...
but i think this can be cleaned up a bit more
2023-04-12 14:46:48 -05:00
3929526a57
ok, this works but needs to be tested more
2023-04-04 18:57:51 -05:00
54cb38603b
Cleaned up the last of the FIXME's (or downgraded them to TODO's)
2023-02-28 22:34:44 -08:00
d52d32fed9
Fixed visibility for constants and methods
...
Signed-off-by: snipe <snipe@snipe.net >
2023-02-06 12:44:02 -08:00
774962c122
Fixed typo
...
Signed-off-by: snipe <snipe@snipe.net >
2022-11-17 21:14:35 +00:00
24841a75d4
Move common things into the model level validation
...
Signed-off-by: snipe <snipe@snipe.net >
2022-11-17 19:41:10 +00:00
7c37c70164
Added new field to allowed_fields so that the API can change them if needed
...
Signed-off-by: snipe <snipe@snipe.net >
2022-11-08 15:27:22 +00:00
4f5d536e32
Fixed : #11871 Replacing (deprecated) patchwork/utf8 by polyfill/mbstring.
2022-09-28 14:52:02 +02:00
8316a4eb92
Fixed : #11871 Replacing (deprecated) patchwork/utf8 by polyfill/mbstring.
2022-09-26 12:06:06 +02:00
baad3b9d58
Only care about the converted name when updating the custom field itself
...
Signed-off-by: snipe <snipe@snipe.net >
2022-06-27 14:17:07 -07:00
ea8f9a6dd9
Make is_unique fillable
...
Signed-off-by: snipe <snipe@snipe.net >
2022-02-16 13:45:44 -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
36bc47c61c
Handle regex format when assigned from API ( #9443 )
2021-04-20 14:44:47 -07:00
eb0ae74ef8
Fixes typo that doesn't accepts 'textarea' as custom field type element. ( #9387 )
2021-04-01 18:23:05 -07:00
a199c75f5c
Added textarea and checkbox to validation rules
...
Signed-off-by: snipe <snipe@snipe.net >
2021-03-31 14:04:01 -07:00
44eee019d9
Add variable declaration for $result ( #9168 )
2021-02-19 10:19:24 -08:00
6772835efc
Added support for radio buttons in Custom Fields. ( #9053 )
2021-01-27 14:41:58 -08:00
75a8639a20
Fixed weird checkbox display
...
TODO: fix the 500 on the save
2021-01-12 18:16:42 -08:00
5dc64ea91b
Re-added EasySlugger to fix tests
2020-04-21 19:28:24 -07:00
066e5588b5
Fixed slugging in custom fields to no longer use old library
2020-04-21 04:14:23 -07: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