Skip to content
Browse files

Report widget key instead of widget id for TW2 form_errors, this is t…

…o cope with the case ids have been changed and don't match the value names anymore
  • Loading branch information...
1 parent d297398 commit 14090b057fe21aade8d7d10c2a33aa53531ad149 @amol- amol- committed May 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 tg/controllers/decoratedcontroller.py
View
2 tg/controllers/decoratedcontroller.py
@@ -304,7 +304,7 @@ def _handle_validation_errors(self,
widget = exception.widget
widget_children = _navigate_tw2form_children(widget.child)
- errors = [(child.id, child.error_msg) for child in widget_children]
+ errors = [(child.key, child.error_msg) for child in widget_children]
tmpl_context.form_errors.update(errors)
tmpl_context.form_values = widget.child.value
elif isinstance(exception, TGValidationError):

0 comments on commit 14090b0

Please sign in to comment.
Something went wrong with that request. Please try again.