[Jifty-commit] r2043 - jifty/trunk/share/web/templates/__jifty
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Fri Oct 20 14:43:12 EDT 2006
Wolfgang:
Can you describe a bit about how it was broken and how it now works
right? (Not totally obvious from the change)
Thanks!
On Fri, Oct 20, 2006 at 02:39:32PM -0400, jifty-commit at lists.jifty.org wrote:
> Author: wolfgang
> Date: Fri Oct 20 14:39:31 2006
> New Revision: 2043
>
> Modified:
> jifty/trunk/share/web/templates/__jifty/validator.xml
>
> Log:
> Fixed 'mandatory' misbehavior -- 'mandatory' now handled correctly
>
> Modified: jifty/trunk/share/web/templates/__jifty/validator.xml
> ==============================================================================
> --- jifty/trunk/share/web/templates/__jifty/validator.xml (original)
> +++ jifty/trunk/share/web/templates/__jifty/validator.xml Fri Oct 20 14:39:31 2006
> @@ -13,8 +13,9 @@
> if ( not $action->arguments->{$arg}->{ajax_validates} ) {
> $writer->emptyTag( "ignored", id => $action->error_div_id($arg) );
> $writer->emptyTag( "ignored", id => $action->warning_div_id($arg) );
> - } elsif ( not defined $action->argument_value($arg)
> - or length $action->argument_value($arg) == 0 ) {
> + } elsif ( not $action->arguments->{$arg}->{mandatory}
> + and (not defined $action->argument_value($arg)
> + or length $action->argument_value($arg) == 0 ) ) {
> $writer->emptyTag( "blank", id => $action->error_div_id($arg) );
> $writer->emptyTag( "blank", id => $action->warning_div_id($arg) );
> } elsif ( $action->result->field_error($arg) ) {
> _______________________________________________
> Jifty-commit mailing list
> Jifty-commit at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-commit
>
--
More information about the Jifty-commit
mailing list