249 Commits

Author SHA1 Message Date
nobohan
3e9690f47e fix deprecations: use fqcn for textarea 2018-04-04 18:42:56 +02:00
nobohan
14412c87fe fix deprecations: use fqcn + remove arrays in addAllowedTypes/Values 2018-04-04 18:22:58 +02:00
nobohan
b07d876157 fix deprecations: use fqcn 2018-04-04 18:17:51 +02:00
nobohan
7edd6affe4 fix deprecations: use fqcn 2018-04-04 18:11:51 +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
9951a5d765 fix deprecations: use fcqn instead of 'choice' 2018-04-04 16:38:30 +02:00
nobohan
def1b1c01f Merge branch 'upgrade-sf3' of https://framagit.org/Chill-project/Chill-CustomFields into upgrade-sf3
merge...
2018-04-04 15:56:01 +02:00
nobohan
b84ee91652 fix deprecations: use fqcn instead of 'choices' 2018-04-04 15:55:45 +02:00
45419a6044 remove deps to unstable phpoffice/spreadsheet 2018-04-04 13:18:23 +02:00
38f34ad48b connect branch upgrade-sf3 in this branch with branch chill/main upgrade-sf3 2018-04-04 13:07:51 +02:00
nobohan
65e7354437 fix deprecatrions: use fqcn for chill classes 2018-04-04 12:19:46 +02:00
nobohan
ac9325a7f2 fix deprecations: use fqcn for submit and hidden types. 2018-04-04 11:54:23 +02:00
nobohan
5515d94aae fix deprecations: requirements: _method -> methods 2018-04-03 15:19:35 +02:00
bcf0e8d89d adapt parameters.yml path 2017-07-04 16:19:59 +02:00
fdb5ec6733 new architecture for tests 2017-07-04 16:15:20 +02:00
a9da9acdd2 revert phpunit to ~5.0, which is required by other bundles 2017-06-22 22:02:28 +02:00
669d823f72 use the apigen phar packaged with the current image 2017-06-20 21:06:43 +02:00
ca4ffb4d53 upgrade deps and CI 2017-06-20 20:58:28 +02:00
86c0622ef3 adding apigen definition file 2016-12-19 11:43:00 +01:00
83b45fd88b re-introduce platform-reqs in installation phase 2016-12-19 11:33:33 +01:00
74c6c645f1 removing memory_limit and adding deploy - doc 2016-12-19 10:13:12 +01:00
8cda910918 fix test
The button seems to be translated
2016-12-19 10:02:28 +01:00
c58d101ade fixing error in creating mock
A public method became protected in phpunit
2016-12-19 09:54:32 +01:00
0899a931e4 adding deploy to packagist into pipeline 2016-11-20 22:32:16 +01:00
f8dd08d194 adding div around title
Those div are required to solve ref Chill-project/Chill-Person#12
2016-11-13 21:04:20 +01:00
9100bb14b3 fixing the call on js function 2016-09-02 08:26:18 +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
2e59c0666b adding rendering of choice_long and number on CSV 2016-07-08 13:56:17 +02:00
b97a550e2b remove unused locale and request stack
The locale resolving is delegated to TranslatableStringHelper
2016-03-21 00:00:58 +01:00
9bf7b4ac60 set deps on doctrine-migration to ~1.1 2016-02-23 15:09:54 +01:00
84128fa718 transform raw value to serialized value in isEmptyValue 2016-01-05 12:10:49 +01:00
0e0a764652 Merge remote-tracking branch 'framagit/master' 2016-01-01 22:26:47 +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
b4ce83453c Merge branch 'master' into 'master'
Various improvements

- Introduce tests for twig functions ;
- Make the twig function `chill_custom_field_is_emtpy` consistent with other functions ;
- remove dead code from CustomFieldsHelper ;
- add validation on custom field slug
- fix bug in test
- re-introduce the units label in numeric/integer custom fields

See merge request !12
2016-01-01 16:25:59 +01:00
f145ae7f88 re-introduce post_text extension in fields.html.twig + tests 2015-12-30 16:57:16 +01:00
8849d8bb54 fix test for custom field helper
The test was requesting an entity not present in database
2015-12-29 17:54:00 +01:00
546fe49960 ignore platform reqs on build 2015-12-29 17:09:04 +01:00
7a8ef70cd1 fix renderLabel signature 2015-12-29 17:04:58 +01:00
287c70c6f3 add validation rule on slug for custom fields 2015-12-28 21:16:01 +01:00
3d2426d8df allow php7 and upgrade to symfony 2.8 2015-12-28 20:59:19 +01:00
cad44ae461 fix test 'complete scenario'
The link 'modifier' was changed to 'Modifier'
2015-12-28 20:54:34 +01:00
54391b02f3 consistency in twig methods
The method chill_custom_fields_is_empty take now the fields as first argument, and the customField as second argument, to be consistent with other twig methods.
2015-12-28 00:54:38 +01:00
d2039893b3 Simplifiying Helper and twig functions
Now, the CustomFieldsHelper methods and the twig function which render customFields require always a `Chill\CustomFields\Entity\CustomField`.

The possibility to add a slug and an object as argument to those method is abandoned, and was not used in other bundle (nevertheless, the method to catch a customField from his slug was buggy).
2015-12-28 00:38:27 +01:00
89221599d4 Merge branch 'add_gitlab_ci' 2015-12-24 16:09:26 +01:00
f7dd99ab87 add test for custom_fields_group_widget 2015-12-24 16:05:49 +01:00
7a73c0170c set a composer root version + select image php-7
The composer root version is required to let composer decide on which branch he is, as we have mirrored dependencies (custom field requires person, which requires custom field).

The php 7 build select now php 7 image
2015-12-24 15:16:04 +01:00
1de944f838 Merge branch 'master' into add_gitlab_ci
Conflicts:
	.gitignore
2015-12-24 15:00:00 +01:00
09a69765b9 adding test for customFieldRendering function 2015-12-23 23:46:44 +01:00
3e5a90c36c escaping argument 2015-12-23 23:46:15 +01:00
573697d8c7 improve function isEmptyValue + tests 2015-12-18 00:22:09 +01:00