Skip to content

Commit

Permalink
localize_label works with non-column label accessors
Browse files Browse the repository at this point in the history
  • Loading branch information
fireartist committed Aug 22, 2012
1 parent 26d120d commit 98439a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

- Support belongs_to rel with a ComboBox element.

- localize_label works with non-column label accessors.

0.09000 2011-03-29

Expand Down
2 changes: 1 addition & 1 deletion lib/HTML/FormFu/Model/DBIC.pm
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ sub options_from_model {
if ( $attrs->{localize_label} ) {
@defaults = map {
{ value => $_->get_column($id_col),
label_loc => $_->get_column($label_col),
label_loc => $has_column ? $_->get_column($label_col) : $_->$label_col,
}
} @defaults;
}
Expand Down

0 comments on commit 98439a7

Please sign in to comment.