Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrectly rendered short condition #210

Closed
michalhlavka opened this issue Jan 9, 2020 · 0 comments
Closed

Incorrectly rendered short condition #210

michalhlavka opened this issue Jan 9, 2020 · 0 comments

Comments

@michalhlavka
Copy link

Version: v2.6.x-dev 66f66d5

After upgrading from 2.5.0, rendering this syntax in latte template
{!$blank ? ($renterRow->personal_id_number ?: $renterRow->passport_number)}

results in error

Exception in Nette\Bridges\ApplicationLatte\Template::__toString(): syntax error, unexpected ')' in

Rendered template
<?php echo LR\Filters::escapeHtmlText(!$blank ? ($renterRow->personal_id_number ?: $renterRow->passport_number)) /* line 55 */ ?>

It worked in 2.5.x.

@michalhlavka michalhlavka changed the title Wrong rendered short condition Incorrectly rendered short condition Jan 9, 2020
@dg dg closed this as completed in 4409992 Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant