Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2014 at 09:14 UTC
Updated:
27 Dec 2014 at 19:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
daffie commentedComment #2
jeroentPatch is empty.
Comment #3
daffie commentedOeps! Sorry, new try :)
Comment #4
daffie commentedComment #5
longwaveThis seems like something that should have a test.
Comment #6
dawehnerFields do have a setting to be considered empty, when there is a "0" displayed.
In addition tables have a setting to hide a column, if all fields are empty. We need to be sure that this patch does not break that feature, because it is really kind of helpful.
Comment #7
daffie commentedComment #8
daffie commentedI have added a test to the patch. This is the first time I wrote a test for PHPUnit. So please take a good look at it.
@dawehner: Do you know if this functionality is tested in views?
Comment #10
daffie commentedThe previous one work in my local machine. Does the testrobot have php 5.4?
Comment #11
longwaveTestbot runs PHP 5.3 until #2135199: Provide php 5.4 testing on testbots for D8 code without breaking everything else is fixed.
Comment #12
daffie commented@longwave: Thanks for the info.
Comment #13
longwaveComment #14
dalearyous commentedso with this patch, views table will not consider a field empty if its value is 0?
Comment #15
jhedstromComment #16
lokapujyaReroll, while I test this issue.
Comment #17
jhedstromThis is a duplicate of #2244507: template_preprocess_views_view_table ignores zero values, which also has a test for the 'treat 0 as empty' setting. Sorry I didn't realize that when marking as needs reroll.
Comment #18
jhedstromSome of the logic from this test could perhaps be merged into the test over at #2244507: template_preprocess_views_view_table ignores zero values since the approach is slightly different.
Comment #20
idebr commentedClosed again per #17