• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sonata-project / SonataPageBundle / 1888 / 9
49%
3.x: 49%

Build:
DEFAULT BRANCH: 3.x
Ran 27 Mar 2017 08:01PM UTC
Files 120
Run time 10s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Mar 2017 07:51PM UTC coverage: 39.429%. Remained the same
COMPOSER_FLAGS="--prefer-lowest"

push

travis-ci

greg0ire
Prevent error rendering blocks when using shared blocks (#796)

Shared blocks are not linked to pages. Thus, for a shared block, the page
variable is null but still defined.

The default template Block/block_base.html.twig does the following check:
{% if block.page is defined %}.This check is wrong because it returns true
and the following {{ block.page.id }} throws an exception:

Impossible to access an attribute ("id") on a null variable.
500 Internal Server Error - Twig_Error_Runtime

However, when SonataPageBundle is installed and enabled, the template
Block/block_base.html.twig is used as base template also in the admin. In
this case, the page variable is undefined.

1725 of 4375 relevant lines covered (39.43%)

1.32 hits per line

Source Files on job 1888.9 (COMPOSER_FLAGS="--prefer-lowest")
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1888
  • Travis Job 1888.9
  • cfadbb22 on github
  • Prev Job for COMPOSER_FLAGS="--prefer-lowest" on 3.x (#1884.9)
  • Next Job for COMPOSER_FLAGS="--prefer-lowest" on 3.x (#1891.9)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc