Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Percent type in list view is displaying nothing #2208

Closed
cabsil opened this issue Apr 23, 2018 · 1 comment
Closed

Percent type in list view is displaying nothing #2208

cabsil opened this issue Apr 23, 2018 · 1 comment
Labels

Comments

@cabsil
Copy link

cabsil commented Apr 23, 2018

Hello,

Is it normal if I set the property like the following in the list view of a given entity the column remains empty ?
Extract of my config.yml :

Entity :
  list:
    fields:
       - { property: 'myField', type: 'percent', type_options: {  } }

The same is working great in form view.

I know I can create a dynamic field to render the field containing the percent value. But this i snot a nice solution from my opinion.

Regards

Christophe Absil

javiereguiluz added a commit that referenced this issue Oct 2, 2018
This PR was merged into the 1.x branch.

Discussion
----------

Add default field for percent type. Fixes #2208.

This PR adds missing percent field template.

This field doesn't depend on format configuration it will use type options if provided to render the value properly. If they aren't provided it will use the defaults of the percent type which are `type = fractional` and `scale = 0`.

Commits
-------

b1d0a1d Add default field for percent type. Fixes #2208.
javiereguiluz added a commit that referenced this issue Oct 2, 2018
* 1.x:
  Add default field for percent type. Fixes #2208.
@javiereguiluz
Copy link
Collaborator

Fixed by #2374.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants