-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathChanges
More file actions
303 lines (263 loc) · 13.9 KB
/
Changes
File metadata and controls
303 lines (263 loc) · 13.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
Revision history for RT-Extension-ConditionalCustomFields
2.05 2026-01-29
- Fix displaying User or Group CFs when Condition is not displayed
- Fix css class name when displaying User or Group CFs with accents or quotes
2.04 2026-01-19
- Update copyright year to 2026
- Prepend Ajax url with WebPath (thx RA12322)
2.03 2025-12-06
- Fix support for Article and Transaction CFs
- Fix crash in CF admin. Thanks to PinkFreud
2.02 2025-11-26
- Remove obsolete test file from Makefile
- Add export $RTHOME in install doc
- Perl 5.26 and newer remove '.' from @inc by default. Re-add to Makefile.PL to enable installation on newer Perl releases. Thanks to PinkFreud
- Upgrade Module::Install:RTx for RT 6
- Redirect to AJAX Helper from SelfService instead of duplicating code
2.01 2025-11-26
- Update test for RT 6 Attributes
- Make it works for SelfService tickets
- Redirect to AJAX Helper from SelfService
- No need to check for pre RT 5 version, since this version of ConditionalCustomFields works with RT 6
- Update to work with RT 6 and HTMX
- Add AJAX Helper to dynamically get CF values for use with HTMX
- Pass Grouping as argument to /Elements/ShowConditionalCustomFields
- Remove obsolete callbacks in RT 6, now centralized to /Elements/EditCustomField/AfterCustomFieldValue
- Move obsolete Callback to the one used by RT 6
1.17 2025-11-25
- Update doc for deleted js tests
- Update attributes first id according to RT versions
- Delete javascript tests, phantomjs cannot cope with bootstrap.js
- Fix _findGrouping for RT::Ticket or RT::Asset creation
- Fix JS condition_is_met() with empty current value
1.16 2024-05-16
- Fix errors on admin CF where there is no ContextObect
1.15 2024-05-13
- Fix conflict with bootsrap collapse
- Replace trigger() by triggerHandler() also for change events
- Fix errors when user has no right on CFs but on queue
1.14 2023-11-09
- Fix unneeded patches for RT up to 5.0.5.
1.13 2023-10-13
- Do NOT Limit to Dropdown CF retriggering change on Condition CF after inline form has been made visible
- No need to play with collapse
- Detect visibility of inline form from form input rather than .ticket-info-cfs div which is not unique with multiple groupings
- Process dynamically HTML Condition CF
1.12 2023-10-12
- Fix Mason filters, should be not filtered, not html not js
- Add some doc about sort order on cascaded CF
- Limit to inline editing retriggering change on Dropdown Condition CF after inline form has been made visible
- Fix bad variable name
- Fix triggering show needed for cascaded CFs (wrongly deleted by commit #fcf12c1)
1.11 2023-10-11
- Retrigger change on Dropdown Condition CF after bootstrap dropdown has made it visible
- Retrigger change on Dropdown Condition CF after inline form has been made visible
- Check whether condition is met for inline editing
1.10 2023-10-10
- Really avoid JS error raised by bootstrap when triggering show on radio button (commit #62c0528 still raised error with chromium)
- Update links to 5.0.4 RT docs
- Process HTML Condition CF, only in a static way for now
1.09 2023-06-01
- Add patch for RT 5.0.4
- Update copyright year to 2023
1.08 2022-12-14
- Update copyright date
1.07 2022-12-14
- Update author's name
1.06 2022-12-12
- Update selector to hide/show queues/article according to RT5 upgrades
- Update computing selector to Combobox/Date/DateTime according to RT5 upgrades
- Fix test that cascaded List child CF is hidden when parent conditioned is changed to failed
- Fix event listeners for cascaded List child CF which shoul be on HTML container not on radio buttons
- Avoid JS error raised by bootstrap when triggering show on radio button
- Show bootstrap collapse box when CF is shown
- Increase LWP timeout and add some sleeps to please phantomjs
- Skip some tests since phantomjs randomly messes up with bootstrap
- Add call to RT->Config->PostLoadCheck when changing CustomFieldGroupings to comply with update to 5.0.3
- Fix jQuery selector
- Update test to take into account builtin attributes according to RT version
- Add patch for RT 5.0
- Upgrade to RT 5.0.3
- Update parsing of CustomFieldGroupings config option to comply with update to 5.0.3
1.05 2022-12-08
- Add a second ticket in tests so ticket id is distinct from queue id
- Fix checking whether condition cf is applied to current object
1.04 2019-12-19
- Add SelfServiceCustomFieldGroupings configuration variable to allow cfs groupings in SelfService
1.03 2019-12-03
- huggyb: When edit ignore cf grouping in selfservice
- Fix #8 mandatory ConditionalCF: in creation, object is null Ticket, not Queue
1.02 2019-06-21
- Replace non alphabetic chars by underscores in alternative_selector for chosen select CFs
1.01 2019-02-12
- Add tests with condition on empty value
- Add BoolanCustomField as eligible condition CF
- Update number of unitary tests
1.00 2019-02-11
- Update Changes for version 0.99
0.99 2019-02-11
- Add ConditionalOp in ConditionedBy attribute
- Add javascript function condition_is_met
- Add setting of ConditionedBy operation and CF with anytype
- Add ConditionedBy operation in Ajax return
- Update show/edit to handle any ConditionedBy CF type
- Upgrade version
- Configure DevelMode for tests
- Adapt tests for Select ConditionedBy CF and 'is' operation
- Default ConditionedBy operation to 'is' (backward compatibility for ConditionedBy attribute)
- Use jQuery.ajax with async=false instead of jQuery.getJSON (avoid unsync with phantomjs)
- Fix deleting attribute
- Fix default ConditionedBy operation to 'is'
- Update admin_cfs tests
- Fix storing attribute when only operation is changed
- Update admin_cfs test: test storing every operation for ConditionFreeformSingle CF
- Update admin_cfs test: test order with ConditionFreeformSingle as numbers
- Update admin_cfs test: test storing every operation for ConditionFreeformMultiple CF
- Make search insensitive for "matches"/"doesn't match" condition
- Update admin_cfs test: test every operation for ConditionTextSingle and ConditionalWikitextSingle CFs
- Update admin_cfs test: test every operation for ConditionImageSingle and ConditionalImageMultiple CFs
- Update admin_cfs test: test every operation for ConditionBinarySingle and ConditionalBinaryMultiple CFs
- Update admin_cfs test: test every operation for ConditionComboboxSingle CF
- Update admin_cfs test: test every operation for ConditionAutocompleteSingle ans ConditionalAutocompleteMultiple CFs
- Fix distinctive features between Date and DateTime CF
- Fix conversion from Current User Timezone to UTC only for DateTime, not Date
- Fix javascript variable 'res' undefined in scope where it was used
- Update admin_cfs test: test every operation for ConditionDateSingle CF
- Update admin_cfs test: test for ConditionDateTimeSingle with timezone shift
- Normalize IpAddresses to sort them as strings
- Update admin_cfs test: test for ConditionIPAddressSingle
- Update admin_cfs test: test for ConditionIPAddressMultiple
- Exclude IPAddressRange CFs from available Conditional CFs
- Use RT::ObjectCustomFieldValue->ParseIP to canonicalize IPAdresses
- Increase LWP timeout to please Selenium::Remote::Driver
- Fix Binary/Image/textarea CF conditionned by
- Add tests for Binary/Image/textarea CF conditionned by
- Rename edit tests for select/is
- Fix tests for adm Conbobox and Autocomplete
- Rename display tests for select/is
- Add tests for ticket display with Select condition and all operators
- Move sorting values for 'between' operator to SetConditionedBy
- Provide naturalSort as an alternative to Intl.Collator.compare to please phantomJS
- Add tests for ticket display with Freeform condition and all operators
- Make naturalSort case insensitive, as Intl.Collator.compare
- Add tests for ticket display with Text condition and all operators
- Add tests for ticket display with Wikitext condition and all operators
- Add tests for ticket display with Image condition and all operators
- Fix matches/doesn't match js processing (String.search returns -1 if not found)
- Add tests for ticket display with Binary condition and all operators
- Add tests for ticket display with Combobox condition and all operators
- Add tests for ticket display with Autocomplete condition and all operators
- Fix display of date without time for Date CF
- Add tests for ticket display with Date condition and all operators
- Fix user timezone for condition when checking whether condition is met for DateTime CF
- Add tests for ticket display with DateTime condition and all operators
- Fix sorting values for 'between' operator and IPAddress CFs
- Add tests for ticket display with IPAddress condition and all operators
- Fix assigning whole array for each elements
- Move normalizing IpAddresses and DateTime to SetConditionedBy
- Fix wrong variables names after factorization
- Fix timezone for tests on datetime CF
- Remove condition on IPAddressRange since this type is excluded
- Rename variables to have more explicit names
- Fix timezone for tests on admin datetime CFs
- Fix CondionedBy to return DateTime CFs in local timezone
- Add tests for IPv6 IPAddress CFs
- Add javascript rewriting of RT::ObjectCustomFieldValue::ParseIP()
- Use javascript ParseIP instead of converting IP to number
- Add tests for javascript rewriting of RT::ObjectCustomFieldValue::ParseIP()
- Replace js String.search(regex) by RegExp.test(string)
- Add tests for ticket modify with Select condition and all operators
- Add tests for ticket modify with Freeform condition and all operators
- Fix jQuery selector for Text CF
- Add tests for ticket modify with Text condition and all operators
- Factorize js function get_selector()
- Add tests for ticket modify with Wikitext condition and all operators
- Factorize js get_cf_current_form_values()
- Add tests for ticket modify with Image condition and all operators
- Try to upload image with phantomJS/ghostdriver/Selenium
- Do not use Selenium upload_file when phantomJS set file input locally
- Add tests for dynamically editing 'chosen' select CF
- Sync MANIFEST
- Fix trim text value for existing current values of Image/Binary CF
- Add tests for ticket modify with Binary condition and all operators
- Use symbolic links for image tested
- Add tests for ticket modify with Combobox condition and all operators
- Add tests for ticket modify with Autocomplete condition and all operators
- Add tests for ticket modify with Date condition and all operators
- Add tests for ticket modify with DateTime condition and all operators
- Add tests for ticket modify with IPAddress condition and all operators
- Add isn't operator for Date and Datetime CFs
- Add tests for isn't operator for Date and Datetime CFs
- Backward compatibility for ConditionedBy attribute (without operator defined, default to 'is')
- Add tests for backward compatibility for ConditionedBy attribute (without operator defined, default to 'is')
- Add tests for editing all types of conditioned by CFs
- Add tests for operation in initialdata
- Update pod
0.16 2019-02-09
- Fix check visibility of 'chosen' widget for Select CF
- Add tests for 'chosen' select CF
0.15 2019-01-24
- Fix textarea CF conditionned byFix textarea CF conditionned by
- Add tests for textarea CF conditionned by
0.14 2019-01-22
- Add tests for display of cascaded conditioned CFs
- Add tests for edit of cascaded conditioned CFs
- Really fix edit of cascaded conditioned CFs
0.13 2019-01-20
- Fix Binary/Image CF conditionned by
- Add tests for Binary/Image CF conditionned by
- Fix edit of cascaded conditioned CFs by adding hide/show events
- Fix display of cascaded conditioned CFs
0.12 2018-07-02
- Fix editing with two conditions having the same value
- Prevent Error Message
0.11 2018-06-12
- Fix show conditioned CF when condition CF does not apply to current object
0.10 2018-05-29
- Use MaxValues instead of deprecated Single suffix for tests on CFs
- Fix test for ConditionedBy CF with pattern matching
- Remove unnecessary array since _findGrouping returns a scalar value
- Fix RT::CustomField::MatchPattern overriding to pass parameters to original method
- Handle multivalued select for condition CF
- Add tests for multivalued select for condition CF
0.09 2018-05-23
- Allow validation (matching pattern) on ConditionedBy CF only when condition is fulfilled
0.08 2018-05-13
- Fix editing by when condition CF and conditioned_by CF are not in the same CF grouping
0.07 2018-05-08
- Extend condition to handle multiple values
- Complete redesign of ConditionalCustomFields storage and API
0.06 2017-11-09
- Upgrade Module::Install and cie
- Add patch for RT 4.4.2 (no need anymore to add callback for Group Modify)
- Rename patch 4.4 to 4.4.1
- Fixed license meta name.
- Fixed abstract in pod as suggested by CPANTS.
0.05 2017-03-31
- Fix reload of Config, avoid duplicating plugins
0.04 2017-03-31
- Test and submit form for admin CF with WWW:Mechanize::PhantomJS
- Add AJAX handler to select values available for selected CF
- Use CurrentUserHasRight instead of CurrentUserCanSee for RT 4.2 compatibility
- Format pod
0.03 2017-03-29
- Add some tests for assets with WWW:Mechanize::PhantomJS
- Add some tests for articles with WWW:Mechanize::PhantomJS
- Add Child tests for user summary
- Add some tests for modifying queue with WWW:Mechanize::PhantomJS
- Add some tests for user summary with WWW:Mechanize::PhantomJS
- Add some tests for modifying user with WWW:Mechanize::PhantomJS
- Remove bad copy/paste
- Extend ConditionalCustomField to user displayed (via $UserSummaryExtraInfo)
- Fix mispelled method
- Add some tests for groups with WWW::Mechanize::PhantomJS
- Add some tests for modifying tickets with WWW::Mechanize::PhantomJS
- Remove unused params in call to RT::Attribute->Delete
- Rename CF with name already taken
- Remove unneeded undefs
- Move tests from subdirectory
- Add some tests for ticket with WWW::Mechanize::PhantomJS
0.02 2017-03-25
- Add a linefeed to please PAUSE
0.01 2017-03-25
- Initial commit