Skip to content

Commit

Permalink
fix syntax error in last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
fireartist committed Aug 22, 2012
1 parent 98439a7 commit eac8b92
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/HTML/FormFu/Model/DBIC.pm
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ sub options_from_model {

my $result = $resultset->search( $condition, $attributes );

my @defaults = $result->all;
my @defaults = $result->all;
my $has_column = $source->has_column($label_col);

if ( $attrs->{localize_label} ) {
@defaults = map {
Expand All @@ -83,8 +84,6 @@ sub options_from_model {
} @defaults;
}
else {
my $has_column = $source->has_column($label_col);

@defaults = map { [
$_->get_column($id_col),
$has_column ? $_->get_column($label_col) : $_->$label_col,
Expand Down

0 comments on commit eac8b92

Please sign in to comment.