Bug
Misleading error message in twig when testing for data property on tobject
Issue description
Given a tobject T1 with a data property P1 set to null. When a twig template tests if T1 has a non-null value in P1, the error message is misleading stating that there is a bad method call by the name of P1.
Developer comments
Part of the problem is that twig tests with isset, which only actually accesses the data property when non-null, thus the expression is misinterpreted as a method call and since P1 is neither a data method call nor a method of a domain class, the misleading error message appears.
Unfortunately there was no other option than to hotfix Twig here.
|
Work sessions2
Start |
2021-04-06T14:03:21
|
End |
2021-04-06T16:03:27
|
Participant |
Robert Cerny
|
Start |
2021-04-06T16:37:08
|
End |
2021-04-06T17:40:07
|
Participant |
Robert Cerny
|
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.