Function drupal_render treat following values as empty and returns empty string.
array('#markup' => 0);
array('#markup' => '0');
The problem comes when create list (numeric) field with possible value 0 and create node with this value. On full node view there is no value of this field shown at all.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 902186-3.patch | 927 bytes | ygerasimov |
| #1 | 902186-1.patch | 789 bytes | ygerasimov |
Comments
Comment #1
ygerasimov commentedplease review the patch
Comment #2
moshe weitzman commentedNeeds code comments IMO
Comment #3
ygerasimov commentedpatch with some comments
Comment #4
thedavidmeister commentedThis looks like it was already fixed at some point in D7: