Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
views.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Jul 2015 at 21:51 UTC
Updated:
24 Jul 2017 at 11:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pieterjanput commentedempty() returns TRUE for 0, therefore this wasn't working. Added extra check for numeric.
Comment #2
borisson_The attached patch solves the issue, I've attached screenshots of before/after applying the patch.
I think the
is_numericcall is a good solution to make sure this doesn't happen again. I think this needs a test though, this can go in\Drupal\views\Tests\Plugin\StyleTableTest..Comment #3
borisson_Attached patch has a test that proves this fix is correct. Test-only should fail.
Comment #6
dazz commentedInstead of checking empty or numeric, just check if string is empty.
Still needs tests.
Comment #7
borisson_Readded the test I added in #3. Removed the extra person from
ViewTestData::dataSet, this should resolve all the extra failures in #3.Comment #8
jeroentComment #9
dawehnerFeel free to correct the "" to ''
Comment #10
jeroentReplaced "" with ''.
Patch attached.
Comment #11
jeroentSetting back to RTBC as I only replaced the quotation marks.
Comment #14
jeroentI think these are random test failures. Back to RTBC.
Comment #15
alexpottThis issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed b399f75 and pushed to 8.0.x. Thanks!
Comment #18
delacosta456 commentedhi
Please can somebody help us solve this in drupal 7
Comment #19
cilefen commenteddelacosta456: Find or open an issue in the Views project.