Skip to content

Commit 6ab35aa

Browse files
committed
fix isNullable list
1 parent 6480e68 commit 6ab35aa

File tree

1 file changed

+4
-85
lines changed

1 file changed

+4
-85
lines changed

inc/userinjection.class.php

Lines changed: 4 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -56,93 +56,12 @@ public function connectedTo()
5656
public function isNullable($field)
5757
{
5858
return in_array($field, [
59-
'name',
60-
'password',
61-
'password_last_update',
62-
'phone',
63-
'phone2',
64-
'mobile',
65-
'realname',
66-
'firstname',
67-
'language',
68-
'list_limit',
69-
'comment',
70-
'last_login',
71-
'date_mod',
72-
'date_sync',
73-
'entities_id',
74-
'date_format',
75-
'number_format',
76-
'names_format',
77-
'csv_delimiter',
78-
'is_ids_visible',
79-
'use_flat_dropdowntree',
80-
'use_flat_dropdowntree_on_search_result',
81-
'show_jobs_at_login',
82-
'priority_1',
83-
'priority_2',
84-
'priority_3',
85-
'priority_4',
86-
'priority_5',
87-
'priority_6',
88-
'followup_private',
89-
'task_private',
90-
'default_requesttypes_id',
91-
'password_forget_token',
92-
'password_forget_token_date',
93-
'user_dn',
94-
'user_dn_hash',
95-
'registration_number',
96-
'show_count_on_tabs',
97-
'refresh_views',
98-
'set_default_tech',
99-
'set_followup_tech',
100-
'set_solution_tech',
101-
'personal_token',
102-
'personal_token_date',
103-
'api_token',
104-
'api_token_date',
105-
'cookie_token',
106-
'cookie_token_date',
107-
'display_count_on_home',
108-
'notification_to_myself',
109-
'duedateok_color',
110-
'duedatewarning_color',
111-
'duedatecritical_color',
112-
'duedatewarning_less',
113-
'duedatecritical_less',
114-
'duedatewarning_unit',
115-
'duedatecritical_unit',
116-
'pdffont',
117-
'picture',
11859
'begin_date',
60+
'date_sync',
11961
'end_date',
120-
'keep_devices_when_purging_item',
121-
'privatebookmarkorder',
122-
'backcreated',
123-
'task_state',
124-
'planned_task_state',
125-
'palette',
126-
'page_layout',
127-
'fold_menu',
128-
'savedsearches_pinned',
129-
'timeline_order',
130-
'itil_layout',
131-
'richtext_layout',
132-
'set_default_requester',
133-
'lock_autolock_mode',
134-
'lock_directunlock_notification',
135-
'date_creation',
136-
'highcontrast_css',
137-
'plannings',
138-
'sync_field',
139-
'timezone',
140-
'default_dashboard_central',
141-
'default_dashboard_assets',
142-
'default_dashboard_helpdesk',
143-
'default_dashboard_mini_ticket',
144-
'default_central_tab',
145-
'nickname',
62+
'last_login',
63+
'substitution_end_date',
64+
'substitution_start_date',
14665
]);
14766
}
14867

0 commit comments

Comments
 (0)