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

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

Build:
DEFAULT BRANCH: 3.x
Ran 27 Mar 2017 07:55PM 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.483%. Remained the same
1888.1

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.

1727 of 4374 relevant lines covered (39.48%)

1.32 hits per line

Source Files on job 1888.1
  • 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.1
  • cfadbb22 on github
  • Prev Job for on 3.x (#1884.1)
  • Next Job for on 3.x (#1891.2)
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