a38208f5cf
fix sf4 deprecated: remove choices_as_values form option
2020-07-22 17:05:24 +02:00
4182c53304
fix error when field definition has changed
2019-04-16 15:22:57 +02:00
23e68416a2
Improve isChecked
2018-06-13 16:45:21 +02:00
0371236493
allow to render choice in different columns
2018-06-12 17:58:45 +02:00
cacf6d0f3a
fix error when adding customfield choice
2018-05-16 21:52:36 +02:00
nobohan
e021cea2da
fix deprecation error: use gqcn and pass option in array
2018-04-20 14:19:17 +02:00
nobohan
8c97ac9e26
fix deprecations: use fqcn
2018-04-05 16:33:53 +02:00
nobohan
ebd5e03d54
fix error
2018-04-05 14:10:00 +02:00
nobohan
d501fa31ae
fix deprecations: use fqcn fr translatable_string
2018-04-05 13:59:14 +02:00
nobohan
a35fd76053
fix deprecations: add choices_as_values=true + flip contents of choice in ChoiceType
2018-04-04 22:01:52 +02:00
nobohan
23dd4ec48b
fix deprecations: use choices_as_values=true and flip content of the choice options
2018-04-04 17:50:23 +02:00
nobohan
b84ee91652
fix deprecations: use fqcn instead of 'choices'
2018-04-04 15:55:45 +02:00
affeae238c
adding empty data on CFChoice
...
And fixing a bug occuring because type of empty data are wrong.
fix #23
2016-08-11 23:26:32 +02:00
b97a550e2b
remove unused locale and request stack
...
The locale resolving is delegated to TranslatableStringHelper
2016-03-21 00:00:58 +01:00
f288f67bb9
fix error with empty values with multiple and non-existant data
...
if a value was array(null) or array(_other => null, _choices => null),
the isEmptyValue function failed.
2016-01-01 22:25:05 +01:00
573697d8c7
improve function isEmptyValue + tests
2015-12-18 00:22:09 +01:00
24f9db6ae7
fix bug in changing custom field option
...
bug description :
> if you change the options of a custom field choice (i.e. from a
> multiple to a single, removing or adding allow_other), the data
> representation change and do not match with the expected
> representation of the form.
This commit fix this bug by switching the data representation to the
current options.
2015-12-17 23:50:24 +01:00
0a1898e9a7
take into account the different type of choices in empty value
2015-12-16 20:25:40 +01:00
fe73a64e9d
Add possibility to hide empty value in customfield group view rendering
...
A new parameter is defined :
```
chill_custom_fields:
show_empty_values_in_views = true|false
```
A new method is added to CustomFieldInterface: `isEmptyValue`. To ease
the dev of new classes, an AbstractCustomField class is created, which
implements the most commons function (currently, only isEmptyValue).
A new Twig Filter is added: `chill_custom_field_is_empty`
The twig filter `chill_custom_fields_group_widget` has a new possibility
in array option : `show_empty`. Default to
chill_custom_fields.show_empty_values_in_view. May be forced by
true/false.
2015-12-15 11:11:36 +01:00
3230659a4b
add a required field to custom fields type
...
ref Chill-project/Chill-CustomFields#17
2015-12-10 17:16:59 +01:00
Marc Ducobu
ebfb24a3eb
Refactoring CustomFields/CustomFieldChoice.php : removing useless linereturn
2015-12-08 11:42:05 +01:00
b96076022f
[wip] layout of custom field edition
...
[ci skip]
2015-11-25 08:45:17 +01:00
Marc Ducobu
23438926b1
Refactoring CustomFields/CustomFieldChoice.php : indentation
2015-10-22 15:02:49 +02:00
Marc Ducobu
e7ce8934ab
Refactoring CustomFields/CustomFieldChoice.php : good indentation
2015-09-28 13:55:32 +02:00
Marc Ducobu
47a9a29236
allowing csv rendering for custom fields
2015-02-17 15:01:12 +01:00
77247de990
fix method name
2015-02-05 17:52:03 +01:00
a2b3ff6d63
remove %locale% from cf choice
...
refs #332
2015-02-05 17:40:32 +01:00
a925533fc8
fix bug : CFChoice was not rendered correctly with _other option
2014-11-27 13:54:58 +01:00
Marc Ducobu
b5bf383005
Allow to customize the 'other value' statement in CFChoice - close #361
2014-11-26 18:49:24 +01:00
b687e9e07d
Add a 'none' text on rendering when the custom fields is empty
...
close #347
2014-11-20 17:35:16 +01:00
ff40e2991c
[CFChoice] Allow true in option 'other'
...
Before this commit, only the "1" value was taken into account
2014-11-20 11:59:39 +01:00
Marc Ducobu
43d863ef88
Using TranslatableStringHelper inside CustomFieldChoice, CustomFieldText & CustomFieldTitle
2014-11-17 12:10:14 +01:00
Marc Ducobu
f02d9ff098
Refactoring useless return line
2014-11-13 21:29:01 +01:00
d0a04279d3
show the name into custom fields's choice label refs #291
2014-11-13 18:38:10 +01:00
37375ec357
set required to false refs #301
2014-11-13 18:14:38 +01:00
bd96f36463
rendering of custom fields refs #277 [ci skip]
2014-11-11 08:44:12 +01:00
952d70f049
choice with other + some development tips
2014-11-10 11:25:54 +01:00