Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293485

Twig implementation does not print int(0)

$
0
0

Problem/Motivation

Drupal's Twig implementation does not print anything for the following:
{% set var = 0 %}{{ var }}

This should print '0'.

Proposed resolution

Track down the bug and squash it. @Fabianx said that there is a check for (!$var) somewhere that should be refactored, and possibly we can check is_numeric().

Remaining tasks

TBD

User interface changes

n/a

API changes

n/a

#1757550: [meta] Convert core theme functions and templates to Twig


Viewing all articles
Browse latest Browse all 293485

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>