[Jifty-commit] r1030 - in jifty/trunk: lib/Jifty lib/Jifty/Web/Form

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Wed May 10 08:01:07 EDT 2006


Author: seanmil
Date: Wed May 10 08:01:04 2006
New Revision: 1030

Modified:
   jifty/trunk/AUTHORS
   jifty/trunk/lib/Jifty/Action.pm
   jifty/trunk/lib/Jifty/Web/Form/Field.pm

Log:
* Small cleanup for validation warnings

* Adding myself to AUTHORS



Modified: jifty/trunk/AUTHORS
==============================================================================
--- jifty/trunk/AUTHORS	(original)
+++ jifty/trunk/AUTHORS	Wed May 10 08:01:04 2006
@@ -7,3 +7,4 @@
 Audrey Tang <audreyt at audreyt.org>
 Eric Wilhelm <ewilhelm at cpan.org>
 Nelson Elhage <nelhage at mit.edu>
+Sean E Millichamp <sean at enertronllc.com>

Modified: jifty/trunk/lib/Jifty/Action.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Action.pm	(original)
+++ jifty/trunk/lib/Jifty/Action.pm	Wed May 10 08:01:04 2006
@@ -870,6 +870,7 @@
     my $field = shift;
 
     $self->result->field_error($field => undef);
+    $self->result->field_warning($field => undef);
 
     return 1;
 }

Modified: jifty/trunk/lib/Jifty/Web/Form/Field.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/Form/Field.pm	(original)
+++ jifty/trunk/lib/Jifty/Web/Form/Field.pm	Wed May 10 08:01:04 2006
@@ -281,7 +281,8 @@
 Outputs this form element in a span with class C<form_field>.  This
 outputs the label, the widget itself, any hints, any errors, and any
 warnings using L</render_label>, L</render_widget>, L</render_hints>,
-L</render_errors> respectively.  Returns an empty string.
+L</render_errors>, and L</render_warnings>, respectively.  Returns an
+empty string.
 
 This is also what C<Jifty::Web::Form::Field>s do when stringified.
 


More information about the Jifty-commit mailing list