From eecca1c2059adbfca7056011cd44f459fbb1323b Mon Sep 17 00:00:00 2001 From: Oleg Andreyev Date: Fri, 8 Aug 2014 15:53:35 +0300 Subject: [PATCH] added useful reminder about form.vars.errors into UPGRADE-2.5 notes --- UPGRADE-2.5.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/UPGRADE-2.5.md b/UPGRADE-2.5.md index 7c729aed5893e..f9704a572328a 100644 --- a/UPGRADE-2.5.md +++ b/UPGRADE-2.5.md @@ -45,6 +45,18 @@ Form { ``` + Before: + + ``` + {% if form.vars.errors %} + ``` + + After: + + ``` + {% if form.vars.errors|length %} + ``` + PropertyAccess --------------