[Jifty-commit] r7103 - jifty/trunk/lib/Jifty

Jifty commits jifty-commit at lists.jifty.org
Tue May 26 13:25:30 EDT 2009


Author: sartak
Date: Tue May 26 13:25:29 2009
New Revision: 7103

Modified:
   jifty/trunk/lib/Jifty/Action.pm

Log:
Tell the user (in this case, the developer!) which field they need to
actually fill in

Modified: jifty/trunk/lib/Jifty/Action.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Action.pm	(original)
+++ jifty/trunk/lib/Jifty/Action.pm	Tue May 26 13:25:29 2009
@@ -943,7 +943,7 @@
     # When it isn't even given, check if it's mandatory and whine about it
     if ( !defined $value || !length $value ) {
         if ( $field_info->{mandatory} and ($self->has_argument($field) or not defined $field_info->{default_value})) {
-            return $self->validation_error( $field => _("You need to fill in this field") );
+            return $self->validation_error( $field => _("You need to fill in the '$field' field") );
         }
     }
 


More information about the Jifty-commit mailing list