I think it's good to add 0/1 option for the default formats for a boolean field so you can use hide if empty because "Count the number 0 as empty" makes sense.

Files: 
CommentFileSizeAuthor
#5 views-0_1_format_boolean_field-1791372-5.patch674 bytesyannickoo
PASSED: [[SimpleTest]]: [MySQL] 2,296 pass(es).
[ View ]
#2 views-0_1_format_boolean_field-1791372-2.patch670 bytesyannickoo
PASSED: [[SimpleTest]]: [MySQL] 1,603 pass(es).
[ View ]
#1 views-0_1_format_boolean_field-1791372-1.patch674 bytesyannickoo
PASSED: [[SimpleTest]]: [MySQL] 1,603 pass(es).
[ View ]

Comments

yannickoo’s picture

Status:Active» Needs review
StatusFileSize
new674 bytes
PASSED: [[SimpleTest]]: [MySQL] 1,603 pass(es).
[ View ]
yannickoo’s picture

StatusFileSize
new670 bytes
PASSED: [[SimpleTest]]: [MySQL] 1,603 pass(es).
[ View ]

Ups, wrong order and we have to write them as integer and not as string.

dawehner’s picture

Status:Needs review» Reviewed & tested by the community

Cool!

dawehner’s picture

Version:7.x-3.x-dev» 8.x-3.x-dev
Status:Reviewed & tested by the community» Patch (to be ported)

Committed to 7.3-3.x, do you want to create a patch for 8.x-3.x or should i just do that?

yannickoo’s picture

Status:Patch (to be ported)» Needs review
StatusFileSize
new674 bytes
PASSED: [[SimpleTest]]: [MySQL] 2,296 pass(es).
[ View ]

Here is the patch for 8.x-3.x

dawehner’s picture

Status:Needs review» Fixed

Perfect. Committed and pushed.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.