Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Localize the value of the reset button #26

Merged
merged 1 commit into from

2 participants

Matthias Dietrich Gerda Shank
Matthias Dietrich

All buttons have localized values except the reset button. I think this is a bug.

Gerda Shank gshank merged commit a239ba6 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 23, 2012
  1. Matthias Dietrich
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/HTML/FormHandler/Widget/Field/Reset.pm
2  lib/HTML/FormHandler/Widget/Field/Reset.pm
View
@@ -12,7 +12,7 @@ sub render {
my $output = '<input type="reset" name="';
$output .= $self->html_name . '"';
$output .= ' id="' . $self->id . '"';
- $output .= ' value="' . $self->html_filter($self->value) . '"';
+ $output .= ' value="' . $self->html_filter($self->_localize($self->value)) . '"';
$output .= process_attrs($self->element_attributes($result));
$output .= ' />';
return $self->wrap_field( $result, $output );
Something went wrong with that request. Please try again.